Skip to content

Commit bc77525

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 e62e83a commit bc77525

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
@@ -63,7 +63,7 @@ class Ex1Sampler : public FairMQDevice
6363
}
6464
}
6565

66-
void Reset()
66+
void Reset() override
6767
{
6868
if (fInputFile) {
6969
fInputFile->Close();

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ class Ex2Sampler : public FairMQDevice
7575
}
7676
}
7777

78-
void Reset()
78+
void Reset() override
7979
{
8080
if (fInputFile) {
8181
fInputFile->Close();

0 commit comments

Comments
 (0)