diff data/fileio/FileSource.cpp @ 962:613ee830de5e

Fix return of empty string as bool value (from coverity scan, interesting the compiler doesn't mind)
author Chris Cannam
date Wed, 03 Sep 2014 09:58:31 +0100
parents b9d7352336ce
children c6f2b93a7d52
line wrap: on
line diff
--- a/data/fileio/FileSource.cpp	Wed Sep 03 09:57:30 2014 +0100
+++ b/data/fileio/FileSource.cpp	Wed Sep 03 09:58:31 2014 +0100
@@ -857,7 +857,7 @@
 #ifdef DEBUG_FILE_SOURCE
         cerr << "FileSource::createCacheFile: ERROR: Failed to create temporary directory: " << f.what() << endl;
 #endif
-        return "";
+        return false;
     }
 
     QString filepart = m_url.path().section('/', -1, -1,
@@ -915,7 +915,7 @@
                       << m_url.toString() << "\" (or file already exists)" << endl;
 #endif
 
-            return "";
+            return false;
         }
     }