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:
parent
ae1d0048d6
commit
c094891db3
@ -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;
|
QByteArray tmp = encodedUrl;
|
||||||
clear();
|
clear();
|
||||||
if ((parsingMode = parsingMode) == QUrl::TolerantMode) {
|
parsingMode = mode;
|
||||||
|
if (parsingMode == QUrl::TolerantMode) {
|
||||||
// Replace stray % with %25
|
// Replace stray % with %25
|
||||||
QByteArray copy = tmp;
|
QByteArray copy = tmp;
|
||||||
for (int i = 0, j = 0; i < copy.size(); ++i, ++j) {
|
for (int i = 0, j = 0; i < copy.size(); ++i, ++j) {
|
||||||
|
Loading…
Reference in New Issue
Block a user