Mercurial > hg > piper-cpp
changeset 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 | b0f0e257d8af |
children | b66077ee37a3 |
files | vamp-client/qt/ProcessQtTransport.h |
diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
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); }