QRegularExpression: Fix warnings about deprecated tr()-function.
authorFriedemann Kleint <Friedemann.Kleint@nokia.com>
Mon, 21 May 2012 09:20:42 +0000 (11:20 +0200)
committerQt by Nokia <qt-info@nokia.com>
Mon, 21 May 2012 11:00:38 +0000 (13:00 +0200)
Change-Id: I2325bcab9bb80e5507f53887b282a859d0fdb58c
Reviewed-by: Giuseppe D'Angelo <giuseppe.dangelo@kdab.com>
src/corelib/tools/qregularexpression.cpp

index ff42390..74349f6 100644 (file)
@@ -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");
 }
 
 /*!