From: Friedemann Kleint Date: Mon, 21 May 2012 09:20:42 +0000 (+0200) Subject: QRegularExpression: Fix warnings about deprecated tr()-function. X-Git-Tag: 071012110112~912 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=81c53721d06e134ce972880a91951ec9d2e48184;p=profile%2Fivi%2Fqtbase.git QRegularExpression: Fix warnings about deprecated tr()-function. Change-Id: I2325bcab9bb80e5507f53887b282a859d0fdb58c Reviewed-by: Giuseppe D'Angelo --- diff --git a/src/corelib/tools/qregularexpression.cpp b/src/corelib/tools/qregularexpression.cpp index ff42390..74349f6 100644 --- a/src/corelib/tools/qregularexpression.cpp +++ b/src/corelib/tools/qregularexpression.cpp @@ -1500,8 +1500,8 @@ QString QRegularExpression::errorString() const { d.data()->compilePattern(); if (d->errorString) - return QCoreApplication::translate("QRegularExpression", d->errorString, 0, QCoreApplication::UnicodeUTF8); - return QCoreApplication::translate("QRegularExpression", "no error", 0, QCoreApplication::UnicodeUTF8); + return QCoreApplication::translate("QRegularExpression", d->errorString); + return QCoreApplication::translate("QRegularExpression", "no error"); } /*!