Mercurial > hg > svcore
comparison base/StorageAdviser.cpp @ 1465:cee1be4fb8c1
Fix some compiler warnings
author | Chris Cannam |
---|---|
date | Tue, 15 May 2018 11:03:49 +0100 |
parents | 48e9f538e6e9 |
children |
comparison
equal
deleted
inserted
replaced
1464:91bb68146dfc | 1465:cee1be4fb8c1 |
---|---|
81 } | 81 } |
82 | 82 |
83 QString path; | 83 QString path; |
84 try { | 84 try { |
85 path = TempDirectory::getInstance()->getPath(); | 85 path = TempDirectory::getInstance()->getPath(); |
86 } catch (std::exception e) { | 86 } catch (const std::exception &e) { |
87 SVDEBUG << "StorageAdviser::recommend: ERROR: Failed to get temporary directory path: " << e.what() << endl; | 87 SVDEBUG << "StorageAdviser::recommend: ERROR: Failed to get temporary directory path: " << e.what() << endl; |
88 int r = UseMemory | ConserveSpace; | 88 int r = UseMemory | ConserveSpace; |
89 SVDEBUG << "StorageAdviser: returning fallback " << r | 89 SVDEBUG << "StorageAdviser: returning fallback " << r |
90 << " (" << recommendationToString(r) << ")" << endl; | 90 << " (" << recommendationToString(r) << ")" << endl; |
91 return Recommendation(r); | 91 return Recommendation(r); |