#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
@@ -15,7 +15,7 @@ void getWellNames(std::vector<QString>& wellNames, const QString &hostName, quin
if (!socket.waitForConnected(riOctavePlugin::connectTimeOutMilliSecs))
{
error((("Connection: ") + socket.errorString()).toLatin1().data());
error("Connection: %s",socket.errorString().toLatin1().data());
return;
}
@@ -37,7 +37,7 @@ void getWellNames(std::vector<QString>& wellNames, const QString &hostName, quin
{
if (!socket.waitForReadyRead(riOctavePlugin::longTimeOutMilliSecs))
{
error((("Waiting for header: ") + socket.errorString()).toLatin1().data());
error("Waiting for header: %s",socket.errorString().toLatin1().data());
return;
}
}
@@ -52,7 +52,7 @@ void getWellNames(std::vector<QString>& wellNames, const QString &hostName, quin
{
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;