diff layer/ShowLayerCommand.h @ 1406:a18e78b9c78b fix-static-analysis

Use override throughout
author Chris Cannam
date Mon, 26 Nov 2018 13:52:27 +0000
parents 558c71a802d4
children 05d614f6e46d
line wrap: on
line diff
--- a/layer/ShowLayerCommand.h	Thu Nov 22 14:55:38 2018 +0000
+++ b/layer/ShowLayerCommand.h	Mon Nov 26 13:52:27 2018 +0000
@@ -23,13 +23,13 @@
 public:
     ShowLayerCommand(View *view, Layer *layer, bool show, QString commandName) :
         m_view(view), m_layer(layer), m_show(show), m_name(commandName) { }
-    void execute() {
+    void execute() override {
         m_layer->showLayer(m_view, m_show);
     }
-    void unexecute() {
+    void unexecute() override {
         m_layer->showLayer(m_view, !m_show);
     }
-    QString getName() const {
+    QString getName() const override {
         return m_name;
     }
 protected: