From 81c53721d06e134ce972880a91951ec9d2e48184 Mon Sep 17 00:00:00 2001 From: Friedemann Kleint Date: Mon, 21 May 2012 11:20:42 +0200 Subject: [PATCH] QRegularExpression: Fix warnings about deprecated tr()-function. Change-Id: I2325bcab9bb80e5507f53887b282a859d0fdb58c Reviewed-by: Giuseppe D'Angelo --- src/corelib/tools/qregularexpression.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"); } /*! -- 2.7.4