summaryrefslogtreecommitdiffstats
path: root/tests/auto
diff options
context:
space:
mode:
authorThiago Macieira <thiago.macieira@nokia.com>2009-03-19 10:34:54 (GMT)
committerThiago Macieira <thiago.macieira@nokia.com>2009-07-21 13:48:45 (GMT)
commitb01ae86c02d2ca81f30055be4641ca418ac94d9b (patch)
tree65a9e5436a8797655760be1888575a9cdc4c8040 /tests/auto
parent3b545a4008fed0250d61ce1bb54af1a47fd8df92 (diff)
downloadQt-b01ae86c02d2ca81f30055be4641ca418ac94d9b.zip
Qt-b01ae86c02d2ca81f30055be4641ca418ac94d9b.tar.gz
Qt-b01ae86c02d2ca81f30055be4641ca418ac94d9b.tar.bz2
Improve performance in QUrl parsing by doing in-line operations.
Unfortunately, I can't do it all inline because the punycode encoding and decoding requires reading the source several times. (Maybe the decoding can be done with some effort in the future)
Diffstat (limited to 'tests/auto')
-rw-r--r--tests/auto/qurl/tst_qurl.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/qurl/tst_qurl.cpp b/tests/auto/qurl/tst_qurl.cpp
index 94abbb3..78ea146 100644
--- a/tests/auto/qurl/tst_qurl.cpp
+++ b/tests/auto/qurl/tst_qurl.cpp
@@ -3062,7 +3062,7 @@ void tst_QUrl::nameprep_testsuite_data()
#ifdef QT_BUILD_INTERNAL
QT_BEGIN_NAMESPACE
extern void qt_nameprep(QString *source, int from);
-extern bool qt_check_std3rules(const QStringRef &);
+extern bool qt_check_std3rules(const QChar *, int);
QT_END_NAMESPACE
#endif
@@ -3215,7 +3215,7 @@ void tst_QUrl::std3violations()
{
QString prepped = source;
qt_nameprep(&prepped, 0);
- QVERIFY(!qt_check_std3rules(QStringRef(&prepped)));
+ QVERIFY(!qt_check_std3rules(prepped.constData(), prepped.length()));
}
if (source.contains('.'))