From cd83859bd6310a2cf0a67c489aa597dc87e326b4 Mon Sep 17 00:00:00 2001 From: Kai Koehne Date: Wed, 11 Feb 2015 10:22:01 +0100 Subject: Network: Fix operator<<(QDebug, ...) operations Use the QDebugStateSaver saver(debug); debug.resetFormat().nospace(); idiom to unify the formatting and whitespace handling. Change-Id: Id346d63b3f589b60ca19e4459271d587f1a0c003 Reviewed-by: Richard J. Moore --- src/network/kernel/qnetworkproxy.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/network/kernel/qnetworkproxy.cpp') diff --git a/src/network/kernel/qnetworkproxy.cpp b/src/network/kernel/qnetworkproxy.cpp index 53233670e6..53c4410fab 100644 --- a/src/network/kernel/qnetworkproxy.cpp +++ b/src/network/kernel/qnetworkproxy.cpp @@ -1580,6 +1580,8 @@ QList QNetworkProxyFactory::proxyForQuery(const QNetworkProxyQuer */ QDebug operator<<(QDebug debug, const QNetworkProxy &proxy) { + QDebugStateSaver saver(debug); + debug.resetFormat().nospace(); QNetworkProxy::ProxyType type = proxy.type(); switch (type) { case QNetworkProxy::NoProxy: -- cgit v1.2.3