diff options
| author | Dentomologist <dentomologist@gmail.com> | 2022-06-03 20:56:06 -0700 |
|---|---|---|
| committer | Dentomologist <dentomologist@gmail.com> | 2022-06-03 22:28:17 -0700 |
| commit | 2999cca41bf8ccb9442c37ef073b12aed4d99316 (patch) | |
| tree | 457ccef59bdb0521fc1ff85ee4b4874f8c31d565 /Source/UnitTests/Core/IOS/FS/FileSystemTest.cpp | |
| parent | 9fb17b5a4842c469c18b120e4e0c9c9e71db321e (diff) | |
UnitTests: Fix -Wrange-loop-construct warnings
Don't use reference variable bound to a temporary value
Diffstat (limited to 'Source/UnitTests/Core/IOS/FS/FileSystemTest.cpp')
| -rw-r--r-- | Source/UnitTests/Core/IOS/FS/FileSystemTest.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/UnitTests/Core/IOS/FS/FileSystemTest.cpp b/Source/UnitTests/Core/IOS/FS/FileSystemTest.cpp index 15d3544f1d..5442a66eab 100644 --- a/Source/UnitTests/Core/IOS/FS/FileSystemTest.cpp +++ b/Source/UnitTests/Core/IOS/FS/FileSystemTest.cpp @@ -93,7 +93,7 @@ TEST(FileSystem, PathSplitting) TEST_F(FileSystemTest, EssentialDirectories) { - for (const std::string& path : + for (const std::string path : {"/sys", "/ticket", "/title", "/shared1", "/shared2", "/tmp", "/import", "/meta"}) { EXPECT_TRUE(m_fs->ReadDirectory(Uid{0}, Gid{0}, path).Succeeded()) << path; @@ -457,7 +457,7 @@ TEST_F(FileSystemTest, CreateFullPath) ASSERT_EQ(m_fs->CreateFullPath(Uid{0}, Gid{0}, "/tmp/a/b/c/d", 0, modes), ResultCode::Success); // Parent directories should be created by CreateFullPath. - for (const std::string& path : {"/tmp", "/tmp/a", "/tmp/a/b", "/tmp/a/b/c"}) + for (const std::string path : {"/tmp", "/tmp/a", "/tmp/a/b", "/tmp/a/b/c"}) EXPECT_TRUE(m_fs->ReadDirectory(Uid{0}, Gid{0}, path).Succeeded()); // If parent directories already exist, the call should still succeed. |
