csync: apply strict QString handling
authorHannah von Reth <hannah.vonreth@owncloud.com>
Fri, 31 Jul 2020 07:25:37 +0000 (09:25 +0200)
committerKevin Ottens <kevin.ottens@nextcloud.com>
Tue, 15 Dec 2020 09:59:17 +0000 (10:59 +0100)
src/common/syncjournaldb.cpp

index 8dcecae70cc8cb9aa851f0576ece6819f4567b16..c09d158eb720932ef56864001eb11f6112060301 100644 (file)
@@ -79,7 +79,7 @@ static QByteArray defaultJournalMode(const QString &dbPath)
         return "DELETE";
     }
 #elif defined(Q_OS_MAC)
-    if (dbPath.startsWith("/Volumes/")) {
+    if (dbPath.startsWith(QLatin1String("/Volumes/"))) {
         qCInfo(lcDb) << "Mounted sync dir, do not use WAL for" << dbPath;
         return "DELETE";
     }