summaryrefslogtreecommitdiff
path: root/rbutil/rbutilqt/test
diff options
context:
space:
mode:
authorDominik Riebeling <Dominik.Riebeling@gmail.com>2016-04-09 13:15:11 +0200
committerDominik Riebeling <Dominik.Riebeling@gmail.com>2016-12-16 19:46:00 +0100
commitefe3775145fc31ca5fc88f44fbd92264f0a489be (patch)
tree19d484fab6c7d5d6322f6b1893962a3d5eae6bd5 /rbutil/rbutilqt/test
parent14ef6079c01077f06a9137d8b939d508487adf23 (diff)
Create local file URL using QUrl.
Don't construct the local file URL from string. On Windows the URL needs to start with file:/// instead of file://. QUrl handles this. Change-Id: I3dea29a8d368ebdc20eeff6b1f1cf5058d1b5d05
Diffstat (limited to 'rbutil/rbutilqt/test')
-rw-r--r--rbutil/rbutilqt/test/test-httpget.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/test/test-httpget.cpp b/rbutil/rbutilqt/test/test-httpget.cpp
index 70b581a74a..144adc62df 100644
--- a/rbutil/rbutilqt/test/test-httpget.cpp
+++ b/rbutil/rbutilqt/test/test-httpget.cpp
@@ -207,7 +207,7 @@ void TestHttpGet::testFileUrlRequest(void)
QTemporaryFile datafile;
datafile.open();
datafile.write(teststring.toLatin1());
- m_getter->getFile(QUrl("file://" + datafile.fileName()));
+ m_getter->getFile(QUrl::fromLocalFile(datafile.fileName()));
datafile.close();
while(m_doneSpy->count() == 0 && m_waitTimeoutOccured == false)
QCoreApplication::processEvents();