comparison 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
comparison
equal deleted inserted replaced
1464:91bb68146dfc 1465:cee1be4fb8c1
882 } 882 }
883 883
884 QDir dir; 884 QDir dir;
885 try { 885 try {
886 dir = TempDirectory::getInstance()->getSubDirectoryPath("download"); 886 dir = TempDirectory::getInstance()->getSubDirectoryPath("download");
887 } catch (DirectoryCreationFailed f) { 887 } catch (const DirectoryCreationFailed &f) {
888 #ifdef DEBUG_FILE_SOURCE 888 #ifdef DEBUG_FILE_SOURCE
889 cerr << "FileSource::createCacheFile: ERROR: Failed to create temporary directory: " << f.what() << endl; 889 cerr << "FileSource::createCacheFile: ERROR: Failed to create temporary directory: " << f.what() << endl;
890 #endif 890 #endif
891 return false; 891 return false;
892 } 892 }