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

This commit is contained in:
Magne Sjaastad
2020-11-03 12:25:15 +01:00
parent fe0490301f
commit 3d2710f507
29 changed files with 78 additions and 78 deletions

View File

@@ -15,7 +15,7 @@ void getSelectedCells(int32NDArray& selectedCellInfo, const QString &hostName, q
if (!socket.waitForConnected(riOctavePlugin::connectTimeOutMilliSecs))
{
error((("Connection: ") + socket.errorString()).toLatin1().data());
error("Connection: %s",socket.errorString().toLatin1().data());
return;
}
@@ -36,7 +36,7 @@ void getSelectedCells(int32NDArray& selectedCellInfo, const QString &hostName, q
{
if (!socket.waitForReadyRead(riOctavePlugin::longTimeOutMilliSecs))
{
error((("Waiting for header: ") + socket.errorString()).toLatin1().data());
error("Waiting for header: %s",socket.errorString().toLatin1().data());
return;
}
}
@@ -69,7 +69,7 @@ void getSelectedCells(int32NDArray& selectedCellInfo, const QString &hostName, q
{
for (int i = 0; i < errorMessages.size(); i++)
{
error(errorMessages[i].toLatin1().data());
error("%s",errorMessages[i].toLatin1().data());
}
OCTAVE_QUIT;