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>
This commit is contained in:
parent
fbc3b6f405
commit
c21113f9ee
@ -193,7 +193,7 @@ static bool parseIp6(const QString &address, QIPAddressUtils::IPv6Address &addr,
|
|||||||
return QIPAddressUtils::parseIp6(addr, tmp.constBegin(), tmp.constEnd()) == 0;
|
return QIPAddressUtils::parseIp6(addr, tmp.constBegin(), tmp.constEnd()) == 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool QHostAddressPrivate::parse()
|
Q_NEVER_INLINE bool QHostAddressPrivate::parse()
|
||||||
{
|
{
|
||||||
isParsed = true;
|
isParsed = true;
|
||||||
protocol = QAbstractSocket::UnknownNetworkLayerProtocol;
|
protocol = QAbstractSocket::UnknownNetworkLayerProtocol;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user