Skip to content

Commit 4ec3486

Browse files
committed
Replace auto _ with std::ignore
1 parent 5981042 commit 4ec3486

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_image_vault_utils.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ TEST_F(TestImageVaultUtils, copy_to_dir_copys_to_dir)
8383
TEST_F(TestImageVaultUtils, compute_hash_throws_when_cant_read)
8484
{
8585
QBuffer buffer{}; // note: buffer is not opened
86-
MP_EXPECT_THROW_THAT(auto _ = MP_IMAGE_VAULT_UTILS.compute_hash(buffer),
86+
MP_EXPECT_THROW_THAT(std::ignore = MP_IMAGE_VAULT_UTILS.compute_hash(buffer),
8787
std::runtime_error,
8888
mpt::match_what(HasSubstr("Failed to read")));
8989
}
@@ -106,7 +106,7 @@ TEST_F(TestImageVaultUtils, compute_file_hash_throws_when_cant_open)
106106
})))
107107
.WillOnce(Return(false));
108108

109-
MP_EXPECT_THROW_THAT(auto _ = MP_IMAGE_VAULT_UTILS.compute_file_hash(test_path),
109+
MP_EXPECT_THROW_THAT(std::ignore = MP_IMAGE_VAULT_UTILS.compute_file_hash(test_path),
110110
std::runtime_error,
111111
mpt::match_what(AllOf(HasSubstr(test_path.toStdString()), HasSubstr("Failed to open"))));
112112
}

0 commit comments

Comments
 (0)