Fix parsingMode not used anymore, detected by compiler warning

This came from replacing d->parsingMode with parsingMode when moving
the method to the Private class.

Change-Id: I5a025ea1128dacda97d265d401a329dbbbfb0ff7
Reviewed-by: Bradley T. Hughes <bradley.hughes@nokia.com>
This commit is contained in:
David Faure 2012-02-01 11:55:35 +01:00 committed by Qt by Nokia
parent ae1d0048d6
commit c094891db3

View File

@ -4350,11 +4350,12 @@ static inline char toHex(quint8 c)
*/
void QUrlPrivate::setEncodedUrl(const QByteArray &encodedUrl, QUrl::ParsingMode parsingMode)
void QUrlPrivate::setEncodedUrl(const QByteArray &encodedUrl, QUrl::ParsingMode mode)
{
QByteArray tmp = encodedUrl;
clear();
if ((parsingMode = parsingMode) == QUrl::TolerantMode) {
parsingMode = mode;
if (parsingMode == QUrl::TolerantMode) {
// Replace stray % with %25
QByteArray copy = tmp;
for (int i = 0, j = 0; i < copy.size(); ++i, ++j) {