Mercurial > hg > svgui
diff layer/ShowLayerCommand.h @ 1414:fa986b91d77f
Merge from branch fix-static-analysis
author | Chris Cannam |
---|---|
date | Wed, 09 Jan 2019 15:24:51 +0000 |
parents | 05d614f6e46d |
children |
line wrap: on
line diff
--- a/layer/ShowLayerCommand.h Wed Jan 09 14:41:52 2019 +0000 +++ b/layer/ShowLayerCommand.h Wed Jan 09 15:24:51 2019 +0000 @@ -13,8 +13,8 @@ COPYING included with this distribution for more information. */ -#ifndef _SHOW_LAYER_COMMAND_H_ -#define _SHOW_LAYER_COMMAND_H_ +#ifndef SV_SHOW_LAYER_COMMAND_H +#define SV_SHOW_LAYER_COMMAND_H #include "base/Command.h" @@ -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: