diff data/fileio/TextTest.cpp @ 1861:9219834e39a4

Merge
author Chris Cannam
date Thu, 21 May 2020 16:09:46 +0100
parents 4c5736a517e0
children
line wrap: on
line diff
--- a/data/fileio/TextTest.cpp	Thu May 21 16:09:10 2020 +0100
+++ b/data/fileio/TextTest.cpp	Thu May 21 16:09:46 2020 +0100
@@ -40,7 +40,7 @@
 
     QByteArray bytes = file.read(200);
 
-    if (StringBits::isValidUtf8(bytes.toStdString(), true)) {
+    if (StringBits::isValidUtf8(std::string(bytes.data()), true)) {
         SVDEBUG << "NOTE: TextTest::isApparentTextDocument: Document appears to be UTF-8" << endl;
         return true; // good enough to be worth trying to parse
     }