diff --git a/src/corelib/tools/qregularexpression.cpp b/src/corelib/tools/qregularexpression.cpp index ff423901e8..74349f62a5 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"); } /*!