#6902 Octave Plugin: Use %s to concatenate text strings

This commit is contained in:
Magne Sjaastad committed 2020-11-03 06:39:46 -05:00
1 parent 03bae9df8b
commit 3b899d4fdb
29 files changed
+78 -78

No files matched your search

+2 -2
View File
@@ -15,7 +15,7 @@ void getStaticNNCValues(std::vector<double>& propertyValues, const QString &serv
if (!socket.waitForConnected(riOctavePlugin::connectTimeOutMilliSecs))
{
error((("Connection: ") + socket.errorString()).toLatin1().data());
error("Connection: %s",socket.errorString().toLatin1().data());
return;
}
@@ -37,7 +37,7 @@ void getStaticNNCValues(std::vector<double>& propertyValues, const QString &serv
{
if (!socket.waitForReadyRead(riOctavePlugin::longTimeOutMilliSecs))
{
error((("Waiting for header: ") + socket.errorString()).toLatin1().data());
error("Waiting for header: %s",socket.errorString().toLatin1().data());
return;
}
}