From 745889c54b5c1e1df667ced9ba879607dfea6156 Mon Sep 17 00:00:00 2001 From: Benjamin Poulain Date: Thu, 25 Feb 2010 16:30:48 +0100 Subject: Cleaning of the patch to QTBUG-3168 Removing trailing whitespace from qurl.cpp Removing a debug() output from the test. Reviewed-by: Benjamin Poulain --- src/corelib/io/qurl.cpp | 4 ++-- tests/auto/qurl/tst_qurl.cpp | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/src/corelib/io/qurl.cpp b/src/corelib/io/qurl.cpp index 05d043e..ffe8d06 100644 --- a/src/corelib/io/qurl.cpp +++ b/src/corelib/io/qurl.cpp @@ -441,14 +441,14 @@ static bool QT_FASTCALL _scheme(const char **ptr, QUrlParseData *parseData) { bool first = true; bool isSchemeValid = true; - + parseData->scheme = *ptr; for (;;) { char ch = **ptr; if ((ch >= 'a' && ch <= 'z') || (ch >= 'A' && ch <= 'Z')) { ; } else if ((ch >= '0' && ch <= '9') || ch == '+' || ch == '-' || ch == '.') { - if (first) + if (first) isSchemeValid = false; } else { break; diff --git a/tests/auto/qurl/tst_qurl.cpp b/tests/auto/qurl/tst_qurl.cpp index bc5a0af..83109b5 100644 --- a/tests/auto/qurl/tst_qurl.cpp +++ b/tests/auto/qurl/tst_qurl.cpp @@ -2516,7 +2516,6 @@ void tst_QUrl::invalidSchemeValidator() // test that if scheme does not start with an ALPHA, QUrl::isValid() returns false { QUrl url("1http://qt.nokia.com", QUrl::StrictMode); - qDebug() << url; QCOMPARE(url.isValid(), false); } { -- cgit v0.12