Eliminate some GCC warnings during compilation.
ClosedPublic

Authored by shlomif on Apr 29 2019, 9:55 AM.

Diff Detail

Repository
R410 KPatience
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
shlomif created this revision.Apr 29 2019, 9:55 AM
Restricted Application added a reviewer: KDE Games. · View Herald TranscriptApr 29 2019, 9:55 AM
Restricted Application added a subscriber: kde-games-devel. · View Herald Transcript
shlomif requested review of this revision.Apr 29 2019, 9:55 AM
mlaurent requested changes to this revision.Apr 29 2019, 11:07 AM
mlaurent added a subscriber: mlaurent.
mlaurent added inline comments.
patsolve/abstract_fc_solve_solver.h
28–37

remove virtual keyword.
Q_DECL_OVERRIDE is enough. And I think that we can use override directly.

This revision now requires changes to proceed.Apr 29 2019, 11:07 AM
shlomif updated this revision to Diff 57269.Apr 30 2019, 1:39 PM
  • Remove unneeded "virtual"s due to override.
mlaurent accepted this revision.Apr 30 2019, 2:59 PM

seems ok for me

This revision is now accepted and ready to land.Apr 30 2019, 2:59 PM

Q_DECL_OVERRIDE is a nop on compilers that don't support override. So this will make the functions non virtual in that case. The original revision did not have this problem. Please test this on such a compiler.

patsolve/abstract_fc_solve_solver.h
28–37

Use overide directly or these functions will be none virtual on compilers that don't support overide.

This revision was automatically updated to reflect the committed changes.
aacid added a subscriber: aacid.May 1 2019, 5:19 PM
aacid added inline comments.
patsolve/abstract_fc_solve_solver.h
28–37

that's not correct, these functions are virtual because the functions in Solver are virtual, you don't need to specify virtual in child classes, only override.

What should be used is override instead of Q_DECL_OVERRIDE, it's long time since we stopped supporting compilers that don't support override.