diff --git a/src/corelib/text/qlocale.cpp b/src/corelib/text/qlocale.cpp index 4d859d32ee..7571b649f0 100644 --- a/src/corelib/text/qlocale.cpp +++ b/src/corelib/text/qlocale.cpp @@ -1022,9 +1022,9 @@ QLocale::QLocale(QStringView name) #if QT_STRINGVIEW_LEVEL < 2 /*! - \fn QLocale::QLocale(const QString &name) \overload */ +QLocale::QLocale(const QString &name) : QLocale(qToStringViewIgnoringNull(name)) {} #endif /*! diff --git a/src/corelib/text/qlocale.h b/src/corelib/text/qlocale.h index 5612d460d2..391857edfb 100644 --- a/src/corelib/text/qlocale.h +++ b/src/corelib/text/qlocale.h @@ -928,7 +928,7 @@ public: QLocale(); #if QT_STRINGVIEW_LEVEL < 2 - explicit QLocale(const QString &name) : QLocale(qToStringViewIgnoringNull(name)) {} + explicit QLocale(const QString &name); #endif explicit QLocale(QStringView name); QLocale(Language language, Territory territory);