diff options
author | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2010-04-21 15:13:31 (GMT) |
---|---|---|
committer | Aleksandar Sasha Babic <aleksandar.babic@nokia.com> | 2010-04-21 15:17:02 (GMT) |
commit | 0497c8925677e8b7fc4120bfe90ae16653db34d3 (patch) | |
tree | e4afbe4e598850e3ca857921509f79f4582cc599 /tests/benchmarks | |
parent | 25783c98686f006eebea6f358eadcbbbc49e365e (diff) | |
download | Qt-0497c8925677e8b7fc4120bfe90ae16653db34d3.zip Qt-0497c8925677e8b7fc4120bfe90ae16653db34d3.tar.gz Qt-0497c8925677e8b7fc4120bfe90ae16653db34d3.tar.bz2 |
Fixing the wrong QUrl usage
As we want to use local file then QUrl::fromLocalFile is safest method.
Task-number: QTBUG-9417
Reviewed-by: TrustMe
Diffstat (limited to 'tests/benchmarks')
-rw-r--r-- | tests/benchmarks/network/access/qfile_vs_qnetworkaccessmanager/main.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/benchmarks/network/access/qfile_vs_qnetworkaccessmanager/main.cpp b/tests/benchmarks/network/access/qfile_vs_qnetworkaccessmanager/main.cpp index 81f6f25..7534e09 100644 --- a/tests/benchmarks/network/access/qfile_vs_qnetworkaccessmanager/main.cpp +++ b/tests/benchmarks/network/access/qfile_vs_qnetworkaccessmanager/main.cpp @@ -141,7 +141,7 @@ void qfile_vs_qnetworkaccessmanager::qnamImmediateFileRead() { QNetworkAccessManager manager; QTime t; - QNetworkRequest request(QUrl(testFile.fileName())); + QNetworkRequest request(QUrl::fromLocalFile(testFile.fileName())); // do 3 dry runs for cache warmup qnamImmediateFileRead_iteration(manager, request); |