diff vamp-client/qt/ProcessQtTransport.h @ 284:3398554568c7

Fix for Qt < 5.4 compatibility
author Chris Cannam <cannam@all-day-breakfast.com>
date Tue, 15 Jan 2019 13:26:26 +0000
parents ce42f0bebae3
children b66077ee37a3
line wrap: on
line diff
--- a/vamp-client/qt/ProcessQtTransport.h	Fri Jan 11 15:57:37 2019 +0000
+++ b/vamp-client/qt/ProcessQtTransport.h	Tue Jan 15 13:26:26 2019 +0000
@@ -277,7 +277,7 @@
         }
 
         QByteArray buffer = m_process->read(byteCount);
-        std::string str(buffer.toStdString());
+        std::string str(buffer.constData(), buffer.size());
         if (str.size() > 0 && str[str.size()-1] == '\n') {
             str.resize(str.size()-1);
         }