Skip to content
Snippets Groups Projects
Commit 212bf2e8 authored by Uwe L. Korn's avatar Uwe L. Korn Committed by Tristan Matthews
Browse files

qt4: Replace redundant virtual with Q_DECL_OVERRIDE


Declaring a virtual function in a subclass as virtual may be a good
documentation that we are overriding a method from the superclass but
has no effect during compilation. With C++11, we can use the override
keyword for this (which will even trigger a compiler error if we try to
override a non-virtual function).

To stay backwards-compatible, we use Qt5's Q_DECL_OVERRIDE macro to
support C++ <11.

Signed-off-by: default avatarTristan Matthews <le.businessman@gmail.com>
parent 6aaf1e0c
No related branches found
No related tags found
Loading
Showing
with 200 additions and 191 deletions
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment