Skip to content

Commit 7c62e98

Browse files
committed
[rt] fix override warning
1 parent d7f2992 commit 7c62e98

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

roottest/cling/function/Params.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ class Derived: public Base {
2525
public:
2626
Derived(const char* mode = ""): Base(mode){};
2727
virtual ~Derived(){};
28-
virtual void FunctionX(int b=1, int c=6) {printf("%s: Derived::FunctionX(int b=%d, int c=%d)\n", fMode, b, c);}
29-
virtual void FunctionY(int arg0 = ++gCountingCalls, float arg1 = Base::GetCountingCalls() ) {
28+
void FunctionX(int b=1, int c=6) override {printf("%s: Derived::FunctionX(int b=%d, int c=%d)\n", fMode, b, c);}
29+
void FunctionY(int arg0 = ++gCountingCalls, float arg1 = Base::GetCountingCalls() ) override {
3030
printf("%s: Derived::FunctionY(int arg0=%d, float arg1=%d.)\n", fMode, arg0, (int)arg1);}
3131
};
3232

33-
#endif
33+
#endif

0 commit comments

Comments
 (0)