Reduce duplication

This commit is contained in:
craig.p.drummond
2014-02-14 20:08:25 +00:00
parent dc075c2866
commit d55dff1b24

View File

@@ -343,11 +343,10 @@ void HttpSocket::readClient()
return;
}
#if QT_VERSION < 0x050000
QUrl url(QUrl::fromEncoded(tokens[1]));
#if QT_VERSION < 0x050000
QUrl &q=url;
#else
QUrl url(QUrl::fromEncoded(tokens[1]));
QUrlQuery q(url);
#endif
bool ok=false;