changeset 1861:9219834e39a4

Merge
author Chris Cannam
date Thu, 21 May 2020 16:09:46 +0100
parents edc2d0e635dc (current diff) 4c5736a517e0 (diff)
children 3072aa267248
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
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
     }