Fix Qt4 compilation
authorOlivier Goffart <ogoffart@woboq.com>
Wed, 28 Oct 2015 12:24:57 +0000 (13:24 +0100)
committerOlivier Goffart <ogoffart@woboq.com>
Wed, 28 Oct 2015 12:26:35 +0000 (13:26 +0100)
src/libsync/discoveryphase.cpp

index 13e7f2c31daaffbdb05cc20e1986e4784eb91c47..d345af84d668903d4bb260f3a9fa03e9be112d1b 100644 (file)
@@ -321,7 +321,7 @@ void DiscoverySingleDirectoryJob::directoryListingIteratedSlot(QString file,QMap
         QStringRef fileRef(&file);
         int slashPos = file.lastIndexOf(QLatin1Char('/'));
         if( slashPos > -1 ) {
-            fileRef = fileRef.mid(slashPos+1);
+            fileRef = file.midRef(slashPos+1);
         }
         if( fileRef.startsWith(QChar('.')) ) {
             file_stat->flags = CSYNC_VIO_FILE_FLAGS_HIDDEN;