summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@intel.com>2015-08-13 21:01:14 -0700
committerThiago Macieira <thiago.macieira@intel.com>2015-08-14 20:17:43 +0000
commitc21113f9eefee0fb38252d8bb31c3fe078fcc4af (patch)
tree08ca9819e17946de20ec73eb78820ff358a592ec
parentfbc3b6f405a6f4c364e0d025f462f00f634568d0 (diff)
QHostAddress: don't inline the parse() function
It's called everywhere due to QT_ENSURE_PARSED and it's big. There's no need to duplicate it everywhere. Change-Id: I7de033f80b0e4431b7f1ffff13fa383f29114712 Reviewed-by: Richard J. Moore <rich@kde.org>
-rw-r--r--src/network/kernel/qhostaddress.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/kernel/qhostaddress.cpp b/src/network/kernel/qhostaddress.cpp
index 1fcfd1e1db..3d51ab4025 100644
--- a/src/network/kernel/qhostaddress.cpp
+++ b/src/network/kernel/qhostaddress.cpp
@@ -193,7 +193,7 @@ static bool parseIp6(const QString &address, QIPAddressUtils::IPv6Address &addr,
return QIPAddressUtils::parseIp6(addr, tmp.constBegin(), tmp.constEnd()) == 0;
}
-bool QHostAddressPrivate::parse()
+Q_NEVER_INLINE bool QHostAddressPrivate::parse()
{
isParsed = true;
protocol = QAbstractSocket::UnknownNetworkLayerProtocol;