mirror of
https://github.com/OPM/ResInsight.git
synced 2025-02-25 18:55:39 -06:00
#6902 Octave Plugin: Use %s to concatenate text strings
This commit is contained in:
@@ -17,7 +17,7 @@ void getActiveCellCorners(NDArray& cellCornerValues, const QString &hostName, qu
|
||||
|
||||
if (!socket.waitForConnected(riOctavePlugin::connectTimeOutMilliSecs))
|
||||
{
|
||||
error((("Connection: ") + socket.errorString()).toLatin1().data());
|
||||
error("Connection: %s",socket.errorString().toLatin1().data());
|
||||
return;
|
||||
}
|
||||
|
||||
@@ -38,7 +38,7 @@ void getActiveCellCorners(NDArray& cellCornerValues, const QString &hostName, qu
|
||||
{
|
||||
if (!socket.waitForReadyRead(riOctavePlugin::longTimeOutMilliSecs))
|
||||
{
|
||||
error((("Waiting for header: ") + socket.errorString()).toLatin1().data());
|
||||
error("Waiting for header: %s",socket.errorString().toLatin1().data());
|
||||
return;
|
||||
}
|
||||
}
|
||||
@@ -70,7 +70,7 @@ void getActiveCellCorners(NDArray& cellCornerValues, const QString &hostName, qu
|
||||
{
|
||||
for (int i = 0; i < errorMessages.size(); i++)
|
||||
{
|
||||
error(errorMessages[i].toLatin1().data());
|
||||
error("%s",errorMessages[i].toLatin1().data());
|
||||
}
|
||||
|
||||
OCTAVE_QUIT;
|
||||
|
||||
Reference in New Issue
Block a user