summaryrefslogtreecommitdiffstats
path: root/src/plugins/sqldrivers/tds
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/sqldrivers/tds')
-rw-r--r--src/plugins/sqldrivers/tds/qsql_tds.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/plugins/sqldrivers/tds/qsql_tds.cpp b/src/plugins/sqldrivers/tds/qsql_tds.cpp
index 940fd05c74..6ebd09a572 100644
--- a/src/plugins/sqldrivers/tds/qsql_tds.cpp
+++ b/src/plugins/sqldrivers/tds/qsql_tds.cpp
@@ -259,10 +259,9 @@ static int CS_PUBLIC qTdsErrHandler(DBPROCESS* dbproc,
return INT_CANCEL;
}
-
- QString errMsg = QString::fromLatin1("%1 %2\n").arg(QLatin1String(dberrstr)).arg(
- QLatin1String(oserrstr));
- errMsg += p->getErrorMsgs();
+ const QString errMsg = QLatin1String(dberrstr) + QLatin1Char(' ')
+ + QLatin1String(oserrstr) + QLatin1Char('\n')
+ + p->getErrorMsgs();
p->lastError = qMakeError(errMsg, QSqlError::UnknownError, dberr);
p->clearErrorMsgs();