aboutsummaryrefslogtreecommitdiff
path: root/tests/FileSystem_test.cpp
diff options
context:
space:
mode:
authorRachel Powers <508861+Ryex@users.noreply.github.com>2023-06-04 14:59:37 -0700
committerRachel Powers <508861+Ryex@users.noreply.github.com>2023-06-04 14:59:48 -0700
commitcc41b039e6ba2a24c0ded9fb573bee6050aa2ac9 (patch)
tree030fa871567ccdcbc839325afc9cc533df2e981e /tests/FileSystem_test.cpp
parent7e0e1ec51dfbcd49204f8e8e7e82b72c9931db11 (diff)
downloadPrismLauncher-cc41b039e6ba2a24c0ded9fb573bee6050aa2ac9.tar.gz
PrismLauncher-cc41b039e6ba2a24c0ded9fb573bee6050aa2ac9.tar.bz2
PrismLauncher-cc41b039e6ba2a24c0ded9fb573bee6050aa2ac9.zip
chore: clean up after new compiler warnings
Signed-off-by: Rachel Powers <508861+Ryex@users.noreply.github.com>
Diffstat (limited to 'tests/FileSystem_test.cpp')
-rw-r--r--tests/FileSystem_test.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/tests/FileSystem_test.cpp b/tests/FileSystem_test.cpp
index ec1f0bcf..9bb681ae 100644
--- a/tests/FileSystem_test.cpp
+++ b/tests/FileSystem_test.cpp
@@ -91,10 +91,9 @@ class LinkTask : public Task {
emitSucceeded();
}
- };
+ }
FS::create_link *m_lnk;
- bool m_useHard = false;
bool m_linkRecursive = true;
};
@@ -346,7 +345,7 @@ slots:
void test_link()
{
QString folder = QFINDTESTDATA("testdata/FileSystem/test_folder");
- auto f = [&folder, this]()
+ auto f = [&folder]()
{
QTemporaryDir tempDir;
tempDir.setAutoRemove(true);
@@ -640,7 +639,7 @@ slots:
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);