#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

+3 -3
View File
@@ -14,7 +14,7 @@ void getCases(std::vector<qint64>& caseIds, std::vector<QString>& caseNames, std
if (!socket.waitForConnected(riOctavePlugin::connectTimeOutMilliSecs))
{
error((("Connection: ") + socket.errorString()).toLatin1().data());
error("Connection: %s",socket.errorString().toLatin1().data());
return;
}
@@ -35,7 +35,7 @@ void getCases(std::vector<qint64>& caseIds, std::vector<QString>& caseNames, std
{
if (!socket.waitForReadyRead(riOctavePlugin::longTimeOutMilliSecs))
{
error((("Waiting for header: ") + socket.errorString()).toLatin1().data());
error("Waiting for header: %s",socket.errorString().toLatin1().data());
return;
}
}
@@ -47,7 +47,7 @@ void getCases(std::vector<qint64>& caseIds, std::vector<QString>& caseNames, std
{
if (!socket.waitForReadyRead(riOctavePlugin::longTimeOutMilliSecs))
{
error((("Waiting for data: ") + socket.errorString()).toLatin1().data());
error("Waiting for data: %s",socket.errorString().toLatin1().data());
return;
}
OCTAVE_QUIT;