summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qstring_compat.cpp
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2014-07-29 18:06:51 -0700
committerThiago Macieira <thiago.macieira@intel.com>2014-08-19 03:39:47 +0200
commit19dd9a0ebd570ac134e115f2339912a1015ecde5 (patch)
treea6eb385853c1c83e3e2e7269b38b118e8176af68 /src/corelib/tools/qstring_compat.cpp
parent3888f5a251d6230cc290ec0ada211a6b45307615 (diff)
Add rvalue-ref qualified QString::to{Upper,Lower,CaseFolded}
This is even more common than the QByteArray equivalents. Qt Qt Creator const & && const & && toLower 71 50 45 26 toUpper 35 8 46 35 Change-Id: I8b797d2321b22ce414c23656c5f1709ac649c423 Reviewed-by: Marc Mutz <marc.mutz@kdab.com>
Diffstat (limited to 'src/corelib/tools/qstring_compat.cpp')
-rw-r--r--src/corelib/tools/qstring_compat.cpp15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/corelib/tools/qstring_compat.cpp b/src/corelib/tools/qstring_compat.cpp
index be74775c1a..b42f49d86d 100644
--- a/src/corelib/tools/qstring_compat.cpp
+++ b/src/corelib/tools/qstring_compat.cpp
@@ -50,6 +50,21 @@
QT_BEGIN_NAMESPACE
// all these implementations must be the same as the inline versions in qstring.h
+QString QString::toLower() const
+{
+ return toLower_helper(*this);
+}
+
+QString QString::toCaseFolded() const
+{
+ return toCaseFolded_helper(*this);
+}
+
+QString QString::toUpper() const
+{
+ return toUpper_helper(*this);
+}
+
QByteArray QString::toLatin1() const
{
return toLatin1_helper(*this);