qt4: Replace redundant virtual with Q_DECL_OVERRIDE
authorUwe L. Korn <uwelk@xhochy.com>
Mon, 18 Aug 2014 21:05:06 +0000 (21:05 +0000)
committerTristan Matthews <le.businessman@gmail.com>
Wed, 3 Sep 2014 01:22:49 +0000 (21:22 -0400)
commit212bf2e8a58645d238535c41aedd96ccb6afa210
tree0a859f4429b304b1cb2bf6423c7f0bd1369f7275
parent6aaf1e0cce4979efdfd01d9ee375a7e7b730ea11
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: Tristan Matthews <le.businessman@gmail.com>
39 files changed:
modules/gui/qt4/adapters/variables.hpp
modules/gui/qt4/components/controller.hpp
modules/gui/qt4/components/controller_widget.hpp
modules/gui/qt4/components/epg/EPGChannels.hpp
modules/gui/qt4/components/epg/EPGItem.hpp
modules/gui/qt4/components/epg/EPGRuler.hpp
modules/gui/qt4/components/extended_panels.hpp
modules/gui/qt4/components/info_panels.hpp
modules/gui/qt4/components/interface_widgets.hpp
modules/gui/qt4/components/open_panels.hpp
modules/gui/qt4/components/playlist/playlist.hpp
modules/gui/qt4/components/playlist/playlist_model.hpp
modules/gui/qt4/components/playlist/selector.hpp
modules/gui/qt4/components/playlist/standardpanel.hpp
modules/gui/qt4/components/playlist/views.hpp
modules/gui/qt4/components/playlist/vlc_model.hpp
modules/gui/qt4/components/preferences_widgets.hpp
modules/gui/qt4/components/sout/profile_selector.hpp
modules/gui/qt4/components/sout/sout_widgets.hpp
modules/gui/qt4/dialogs/convert.hpp
modules/gui/qt4/dialogs/extensions.hpp
modules/gui/qt4/dialogs/gototime.hpp
modules/gui/qt4/dialogs/help.hpp
modules/gui/qt4/dialogs/mediainfo.hpp
modules/gui/qt4/dialogs/openurl.hpp
modules/gui/qt4/dialogs/playlist.hpp
modules/gui/qt4/dialogs/plugins.hpp
modules/gui/qt4/dialogs/toolbar.hpp
modules/gui/qt4/dialogs/vlm.hpp
modules/gui/qt4/main_interface.hpp
modules/gui/qt4/styles/seekstyle.hpp
modules/gui/qt4/util/animators.hpp
modules/gui/qt4/util/customwidgets.hpp
modules/gui/qt4/util/input_slider.hpp
modules/gui/qt4/util/pictureflow.hpp
modules/gui/qt4/util/qvlcframe.hpp
modules/gui/qt4/util/searchlineedit.hpp
modules/gui/qt4/util/timetooltip.hpp
modules/gui/qt4/util/validators.hpp