diff base/StorageAdviser.cpp @ 1465:cee1be4fb8c1

Fix some compiler warnings
author Chris Cannam
date Tue, 15 May 2018 11:03:49 +0100
parents 48e9f538e6e9
children
line wrap: on
line diff
--- a/base/StorageAdviser.cpp	Fri May 11 14:11:04 2018 +0100
+++ b/base/StorageAdviser.cpp	Tue May 15 11:03:49 2018 +0100
@@ -83,7 +83,7 @@
     QString path;
     try {
         path = TempDirectory::getInstance()->getPath();
-    } catch (std::exception e) {
+    } catch (const std::exception &e) {
         SVDEBUG << "StorageAdviser::recommend: ERROR: Failed to get temporary directory path: " << e.what() << endl;
         int r = UseMemory | ConserveSpace;
         SVDEBUG << "StorageAdviser: returning fallback " << r