diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/corelib/text/qstring.cpp | 23 | ||||
-rw-r--r-- | src/corelib/text/qstring.h | 3 |
2 files changed, 0 insertions, 26 deletions
diff --git a/src/corelib/text/qstring.cpp b/src/corelib/text/qstring.cpp index 077097e3fd..c74a9296dc 100644 --- a/src/corelib/text/qstring.cpp +++ b/src/corelib/text/qstring.cpp @@ -5931,22 +5931,6 @@ QString& QString::fill(QChar ch, int size) Appends the string view \a str to this string. */ -/*! \fn QString &QString::operator+=(char ch) - - \overload operator+=() - - Appends the character \a ch to this string. Note that the character is - converted to Unicode using the fromLatin1() function, unlike other 8-bit - functions that operate on UTF-8 data. - - You can disable this function by defining \c QT_NO_CAST_FROM_ASCII - when you compile your applications. This can be useful if you want - to ensure that all user-visible strings go through QObject::tr(), - for example. - - \sa QT_NO_CAST_FROM_ASCII -*/ - /*! \fn QString &QString::operator+=(QChar ch) \overload operator+=() @@ -5954,13 +5938,6 @@ QString& QString::fill(QChar ch, int size) Appends the character \a ch to the string. */ -/*! \fn QString &QString::operator+=(QChar::SpecialCharacter c) - - \overload operator+=() - - \internal -*/ - /*! \fn bool operator==(const char *s1, const QString &s2) diff --git a/src/corelib/text/qstring.h b/src/corelib/text/qstring.h index d12c535539..229dc17a28 100644 --- a/src/corelib/text/qstring.h +++ b/src/corelib/text/qstring.h @@ -570,7 +570,6 @@ public: return *this; } - inline QString &operator+=(QChar::SpecialCharacter c) { return append(QChar(c)); } #if QT_STRINGVIEW_LEVEL < 2 inline QString &operator+=(const QString &s) { return append(s); } inline QString &operator+=(const QStringRef &s) { return append(s); } @@ -859,8 +858,6 @@ public: { return append(QString::fromUtf8(s)); } inline QT_ASCII_CAST_WARN QString &operator+=(const QByteArray &s) { return append(QString::fromUtf8(s)); } - inline QT_ASCII_CAST_WARN QString &operator+=(char c) - { return append(QChar::fromLatin1(c)); } inline QT_ASCII_CAST_WARN bool operator==(const char *s) const; inline QT_ASCII_CAST_WARN bool operator!=(const char *s) const; |