summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qstring.cpp
diff options
context:
space:
mode:
authorGeir Vattekar <geir.vattekar@digia.com>2013-09-26 12:16:39 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-09-27 21:47:55 +0200
commit3705c1263d4d2232d5527361692d25a8519c222b (patch)
tree3d89fde7ca666151ff674f86d734c7ef02e9cd3e /src/corelib/tools/qstring.cpp
parenta0792f0e5135588437ed76d4d0e257a276fd80da (diff)
Doc: Add docs for rvalue references and move constructors
These members were introduced in 4.8, but left undocumented. Because we consider undocumented API to be internal, the members are \since 5.2. Change-Id: I52e2840a8cfaa7f59f410b3e2a06c0942ea06539 Reviewed-by: Jerome Pasion <jerome.pasion@digia.com> Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
Diffstat (limited to 'src/corelib/tools/qstring.cpp')
-rw-r--r--src/corelib/tools/qstring.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/src/corelib/tools/qstring.cpp b/src/corelib/tools/qstring.cpp
index 239cf0446a..1ba9e81b59 100644
--- a/src/corelib/tools/qstring.cpp
+++ b/src/corelib/tools/qstring.cpp
@@ -929,6 +929,15 @@ const QString::Null QString::null = { };
\sa isEmpty()
*/
+/*!
+ \fn QString::QString(QString &&other)
+
+ Move-constructs a QString instance, making it point at the same
+ object that \a other was pointing to.
+
+ \since 5.2
+*/
+
/*! \fn QString::QString(const char *str)
Constructs a string initialized with the 8-bit string \a str. The
@@ -1349,6 +1358,13 @@ QString &QString::operator=(const QString &other)
return *this;
}
+/*!
+ \fn QString &QString::operator=(QString &&other)
+
+ Move-assigns \a other to this QString instance.
+
+ \since 5.2
+*/
/*! \fn QString &QString::operator=(QLatin1String str)