aboutsummaryrefslogtreecommitdiff
path: root/tests/FileSystem_test.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tests/FileSystem_test.cpp')
-rw-r--r--tests/FileSystem_test.cpp13
1 files changed, 5 insertions, 8 deletions
diff --git a/tests/FileSystem_test.cpp b/tests/FileSystem_test.cpp
index 3adcd343..1d3cee85 100644
--- a/tests/FileSystem_test.cpp
+++ b/tests/FileSystem_test.cpp
@@ -81,10 +81,10 @@ class LinkTask : public Task {
} else {
emitSucceeded();
}
- };
+ }
FS::create_link* m_lnk;
- bool m_useHard = false;
+ [[maybe_unused]] bool m_useHard = false;
bool m_linkRecursive = true;
};
@@ -353,15 +353,12 @@ class FileSystemTest : public QObject {
}
}
- void test_getDesktop()
- {
- QCOMPARE(FS::getDesktopDir(), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation));
- }
+ void test_getDesktop() { QCOMPARE(FS::getDesktopDir(), QStandardPaths::writableLocation(QStandardPaths::DesktopLocation)); }
void test_link()
{
QString folder = QFINDTESTDATA("testdata/FileSystem/test_folder");
- auto f = [&folder, this]() {
+ auto f = [&folder]() {
QTemporaryDir tempDir;
tempDir.setAutoRemove(true);
qDebug() << "From:" << folder << "To:" << tempDir.path();
@@ -630,7 +627,7 @@ class FileSystemTest : public QObject {
void test_link_with_max_depth()
{
QString folder = QFINDTESTDATA("testdata/FileSystem/test_folder");
- auto f = [&folder, this]() {
+ auto f = [&folder]() {
QTemporaryDir tempDir;
tempDir.setAutoRemove(true);
qDebug() << "From:" << folder << "To:" << tempDir.path();