diff options
author | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-03 09:01:05 +0100 |
---|---|---|
committer | Christian Mollekopf <chrigi_1@fastmail.fm> | 2016-03-03 09:01:05 +0100 |
commit | 4d9746c828558c9f872e0aed52442863affb25d5 (patch) | |
tree | 507d7c2ba67f47d3cbbcf01a722236ff1b48426b /tests/maildirsyncbenchmark.cpp | |
parent | 9cea920b7dd51867a0be0fed2f461b6be73c103e (diff) | |
download | sink-4d9746c828558c9f872e0aed52442863affb25d5.tar.gz sink-4d9746c828558c9f872e0aed52442863affb25d5.zip |
Fromatted the whole codebase with clang-format.
clang-format -i */**{.cpp,.h}
Diffstat (limited to 'tests/maildirsyncbenchmark.cpp')
-rw-r--r-- | tests/maildirsyncbenchmark.cpp | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/tests/maildirsyncbenchmark.cpp b/tests/maildirsyncbenchmark.cpp index 7904a82..06c5ab1 100644 --- a/tests/maildirsyncbenchmark.cpp +++ b/tests/maildirsyncbenchmark.cpp | |||
@@ -16,8 +16,7 @@ | |||
16 | #include "log.h" | 16 | #include "log.h" |
17 | 17 | ||
18 | 18 | ||
19 | static bool copyRecursively(const QString &srcFilePath, | 19 | static bool copyRecursively(const QString &srcFilePath, const QString &tgtFilePath) |
20 | const QString &tgtFilePath) | ||
21 | { | 20 | { |
22 | QFileInfo srcFileInfo(srcFilePath); | 21 | QFileInfo srcFileInfo(srcFilePath); |
23 | if (srcFileInfo.isDir()) { | 22 | if (srcFileInfo.isDir()) { |
@@ -30,10 +29,8 @@ static bool copyRecursively(const QString &srcFilePath, | |||
30 | QDir sourceDir(srcFilePath); | 29 | QDir sourceDir(srcFilePath); |
31 | QStringList fileNames = sourceDir.entryList(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot | QDir::Hidden | QDir::System); | 30 | QStringList fileNames = sourceDir.entryList(QDir::Files | QDir::Dirs | QDir::NoDotAndDotDot | QDir::Hidden | QDir::System); |
32 | foreach (const QString &fileName, fileNames) { | 31 | foreach (const QString &fileName, fileNames) { |
33 | const QString newSrcFilePath | 32 | const QString newSrcFilePath = srcFilePath + QLatin1Char('/') + fileName; |
34 | = srcFilePath + QLatin1Char('/') + fileName; | 33 | const QString newTgtFilePath = tgtFilePath + QLatin1Char('/') + fileName; |
35 | const QString newTgtFilePath | ||
36 | = tgtFilePath + QLatin1Char('/') + fileName; | ||
37 | if (!copyRecursively(newSrcFilePath, newTgtFilePath)) | 34 | if (!copyRecursively(newSrcFilePath, newTgtFilePath)) |
38 | return false; | 35 | return false; |
39 | } | 36 | } |
@@ -48,7 +45,7 @@ static bool copyRecursively(const QString &srcFilePath, | |||
48 | 45 | ||
49 | /** | 46 | /** |
50 | * Test of complete system using the maildir resource. | 47 | * Test of complete system using the maildir resource. |
51 | * | 48 | * |
52 | * This test requires the maildir resource installed. | 49 | * This test requires the maildir resource installed. |
53 | */ | 50 | */ |
54 | class MaildirSyncBenchmark : public QObject | 51 | class MaildirSyncBenchmark : public QObject |
@@ -102,7 +99,6 @@ private slots: | |||
102 | // row.setValue("totalTime", allProcessedTime); | 99 | // row.setValue("totalTime", allProcessedTime); |
103 | // dataset.insertRow(row); | 100 | // dataset.insertRow(row); |
104 | // HAWD::Formatter::print(dataset); | 101 | // HAWD::Formatter::print(dataset); |
105 | |||
106 | } | 102 | } |
107 | }; | 103 | }; |
108 | 104 | ||