summaryrefslogtreecommitdiffstats
path: root/src/corelib/text/qstring.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/corelib/text/qstring.h')
-rw-r--r--src/corelib/text/qstring.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/corelib/text/qstring.h b/src/corelib/text/qstring.h
index ea78dd017f..0e564b20ed 100644
--- a/src/corelib/text/qstring.h
+++ b/src/corelib/text/qstring.h
@@ -337,8 +337,7 @@ public:
QString &operator=(QLatin1String latin1);
inline QString(QString &&other) noexcept
{ qSwap(d, other.d); }
- inline QString &operator=(QString &&other) noexcept
- { qSwap(d, other.d); return *this; }
+ QT_MOVE_ASSIGNMENT_OPERATOR_IMPL_VIA_PURE_SWAP(QString)
inline void swap(QString &other) noexcept { qSwap(d, other.d); }
inline qsizetype size() const { return d.size; }
inline qsizetype count() const { return d.size; }