Skip to content

Commit 9231e8d

Browse files
ChristianTackeGSIdennisklein
authored andcommitted
Use override to Mark Overriden Methods
When willingly overriding a virtual method, it is good practice to mark the method with `override`. Most other places already do so.
1 parent 3f0acb7 commit 9231e8d

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

examples/MQ/serialization/1-simple/Ex1Sampler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class Ex1Sampler : public fair::mq::Device
7171
}
7272
}
7373

74-
void Reset()
74+
void Reset() override
7575
{
7676
if (fInputFile) {
7777
fInputFile->Close();

examples/MQ/serialization/2-multipart/Ex2Sampler.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ class Ex2Sampler : public fair::mq::Device
8383
}
8484
}
8585

86-
void Reset()
86+
void Reset() override
8787
{
8888
if (fInputFile) {
8989
fInputFile->Close();

0 commit comments

Comments
 (0)