diff data/fileio/FileSource.cpp @ 1465:cee1be4fb8c1

Fix some compiler warnings
author Chris Cannam
date Tue, 15 May 2018 11:03:49 +0100
parents 794b64e62e58
children 70e172e6cc59
line wrap: on
line diff
--- a/data/fileio/FileSource.cpp	Fri May 11 14:11:04 2018 +0100
+++ b/data/fileio/FileSource.cpp	Tue May 15 11:03:49 2018 +0100
@@ -884,7 +884,7 @@
     QDir dir;
     try {
         dir = TempDirectory::getInstance()->getSubDirectoryPath("download");
-    } catch (DirectoryCreationFailed f) {
+    } catch (const DirectoryCreationFailed &f) {
 #ifdef DEBUG_FILE_SOURCE
         cerr << "FileSource::createCacheFile: ERROR: Failed to create temporary directory: " << f.what() << endl;
 #endif