comparison data/fileio/FileSource.cpp @ 1743:7001b9570e37 by-id

Fix deprecation warning
author Chris Cannam
date Mon, 01 Jul 2019 14:16:12 +0100
parents 70e172e6cc59
children
comparison
equal deleted inserted replaced
1742:52705a328b34 1743:7001b9570e37
881 } 881 }
882 } 882 }
883 883
884 QDir dir; 884 QDir dir;
885 try { 885 try {
886 dir = TempDirectory::getInstance()->getSubDirectoryPath("download"); 886 dir.setPath(TempDirectory::getInstance()->
887 getSubDirectoryPath("download"));
887 } catch (const DirectoryCreationFailed &f) { 888 } catch (const DirectoryCreationFailed &f) {
888 #ifdef DEBUG_FILE_SOURCE 889 #ifdef DEBUG_FILE_SOURCE
889 cerr << "FileSource::createCacheFile: ERROR: Failed to create temporary directory: " << f.what() << endl; 890 cerr << "FileSource::createCacheFile: ERROR: Failed to create temporary directory: " << f.what() << endl;
890 #endif 891 #endif
891 return false; 892 return false;