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

This commit is contained in:
Magne Sjaastad committed 2020-12-08 21:45:26 +01:00
1 parent fe0490301f
commit 3d2710f507
29 files changed
+78 -78

No files matched your search

+3 -3
View File
@@ -22,7 +22,7 @@ void getWellCells( std::vector<int>& cellIs,
if (!socket.waitForConnected(riOctavePlugin::connectTimeOutMilliSecs))
{
error((("Connection: ") + socket.errorString()).toLatin1().data());
error("Connection: %s",socket.errorString().toLatin1().data());
return;
}
@@ -45,7 +45,7 @@ void getWellCells( std::vector<int>& cellIs,
{
if (!socket.waitForReadyRead(riOctavePlugin::longTimeOutMilliSecs))
{
error((("Waiting for header: ") + socket.errorString()).toLatin1().data());
error("Waiting for header: %s",socket.errorString().toLatin1().data());
return;
}
}
@@ -62,7 +62,7 @@ void getWellCells( std::vector<int>& cellIs,
{
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;