diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-22 19:27:08 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2015-12-22 19:27:08 +0100 |
commit | 97c2e02697ba90d2339a905b7ad81aa883dca7a5 (patch) | |
tree | 30423e4f1ae6b52641e0135db41c4f4be64984b3 /tests/maildirresourcetest.cpp | |
parent | d11978620ea82d1795c9fdd65c4c79d3dd852440 (diff) | |
download | sink-97c2e02697ba90d2339a905b7ad81aa883dca7a5.tar.gz sink-97c2e02697ba90d2339a905b7ad81aa883dca7a5.zip |
Avoid using QDir::separator
It really doesn't help us in assembling paths since qt deals with
forward slashes just fine
Diffstat (limited to 'tests/maildirresourcetest.cpp')
-rw-r--r-- | tests/maildirresourcetest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/maildirresourcetest.cpp b/tests/maildirresourcetest.cpp index c415a54..b16f883 100644 --- a/tests/maildirresourcetest.cpp +++ b/tests/maildirresourcetest.cpp | |||
@@ -55,7 +55,7 @@ private Q_SLOTS: | |||
55 | void initTestCase() | 55 | void initTestCase() |
56 | { | 56 | { |
57 | QVERIFY(tempDir.isValid()); | 57 | QVERIFY(tempDir.isValid()); |
58 | auto targetPath = tempDir.path() + QDir::separator() + "maildir1/"; | 58 | auto targetPath = tempDir.path() + "/maildir1/"; |
59 | copyRecursively(TESTDATAPATH "/maildir1", targetPath); | 59 | copyRecursively(TESTDATAPATH "/maildir1", targetPath); |
60 | 60 | ||
61 | Akonadi2::Log::setDebugOutputLevel(Akonadi2::Log::Trace); | 61 | Akonadi2::Log::setDebugOutputLevel(Akonadi2::Log::Trace); |
@@ -181,7 +181,7 @@ private Q_SLOTS: | |||
181 | //Ensure all local data is processed | 181 | //Ensure all local data is processed |
182 | Akonadi2::Store::synchronize(query).exec().waitForFinished(); | 182 | Akonadi2::Store::synchronize(query).exec().waitForFinished(); |
183 | 183 | ||
184 | auto targetPath = tempDir.path() + QDir::separator() + "maildir1/"; | 184 | auto targetPath = tempDir.path() + "/maildir1/"; |
185 | QDir dir(targetPath); | 185 | QDir dir(targetPath); |
186 | QVERIFY(dir.rename("inbox", "newbox")); | 186 | QVERIFY(dir.rename("inbox", "newbox")); |
187 | 187 | ||