Skip to content

Commit 5944e81

Browse files
committed
static analyzer
1 parent d25caf3 commit 5944e81

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

test/librawspeed/metadata/CameraSensorInfoTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,7 @@ class CameraSensorInfoTest : public ::testing::TestWithParam<IsoExpectationsT> {
269269
std::rand(), // NOLINT do not need crypto-level randomness
270270
std::rand() // NOLINT do not need crypto-level randomness
271271
}) {}
272-
virtual void SetUp() override { data = GetParam(); }
272+
void SetUp() override { data = GetParam(); }
273273

274274
IsoExpectationsT data;
275275

test/librawspeed/metadata/CameraTest.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ TEST(BoolHintTest, HintsBoolTrue) {
139139

140140
class BoolHintTest : public ::testing::TestWithParam<std::tuple<string>> {
141141
protected:
142-
virtual void SetUp() override { notTrue = std::get<0>(GetParam()); }
142+
void SetUp() override { notTrue = std::get<0>(GetParam()); }
143143
string notTrue;
144144
};
145145
INSTANTIATE_TEST_CASE_P(NotTrue, BoolHintTest,

test/librawspeed/metadata/ColorFilterArrayTest.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ TEST(ColorFilterArrayTestBasic, HandlesOutOfBounds) {
140140
class ColorFilterArrayTest : public ::testing::TestWithParam<Bayer2x2> {
141141
protected:
142142
ColorFilterArrayTest() = default;
143-
virtual void SetUp() { param = GetParam(); }
143+
void SetUp() override { param = GetParam(); }
144144

145145
Bayer2x2 param;
146146
};
@@ -234,7 +234,7 @@ class ColorFilterArrayShiftTest
234234
std::tuple<CFAColor, CFAColor, CFAColor, CFAColor, int, int>> {
235235
protected:
236236
ColorFilterArrayShiftTest() = default;
237-
virtual void SetUp() {
237+
void SetUp() override {
238238
auto param = GetParam();
239239
mat = std::make_tuple(std::get<0>(param), std::get<1>(param),
240240
std::get<2>(param), std::get<3>(param));

0 commit comments

Comments
 (0)