summaryrefslogtreecommitdiffstats
path: root/src/corelib/tools/qstring.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2015-01-25 00:04:42 +0100
committerMarc Mutz <marc.mutz@kdab.com>2015-01-29 13:42:07 +0000
commit1749c1dd425fdba82eb0f1a0761c4c3d71d55319 (patch)
tree3802e5a6837e318a224e8a235a2ddd77ef9a3994 /src/corelib/tools/qstring.cpp
parent7b5ba56b0ab55fcaf79fbf9aad70bf767c938e15 (diff)
Centralize use of __attribute__((noinline))
There are currently only two users, but I have patches in the pipeline which mark some other function noinline, so proavtively centralize the ifdef'ery involved. Change-Id: I1f02351fdc903d4e026089e12b8a976ed6a8d603 Reviewed-by: Kai Koehne <kai.koehne@theqtcompany.com> Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/corelib/tools/qstring.cpp')
-rw-r--r--src/corelib/tools/qstring.cpp6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/corelib/tools/qstring.cpp b/src/corelib/tools/qstring.cpp
index 4589d76279..50184f4696 100644
--- a/src/corelib/tools/qstring.cpp
+++ b/src/corelib/tools/qstring.cpp
@@ -5559,11 +5559,7 @@ struct CasefoldTraits
};
template <typename Traits, typename T>
-#ifdef Q_CC_MSVC
-__declspec(noinline)
-#elif defined(Q_CC_GNU)
-__attribute__((noinline))
-#endif
+Q_NEVER_INLINE
static QString detachAndConvertCase(T &str, QStringIterator it)
{
QString s = qMove(str); // will copy if T is const QString