summaryrefslogtreecommitdiff
path: root/src/gui/widgets/tabs
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2015-12-23 01:47:57 +0300
committerAndrei Karas <akaras@inbox.ru>2015-12-23 01:47:57 +0300
commitb226f23946987a649fb50bc6d9df2dd8afa7ade1 (patch)
tree25dc0c5e10d9db78d1eb463b3c98070ccc89a8bb /src/gui/widgets/tabs
parent1a9ffd99f2b199501bf0f23e368bcd91d05fd277 (diff)
downloadmv-b226f23946987a649fb50bc6d9df2dd8afa7ade1.tar.gz
mv-b226f23946987a649fb50bc6d9df2dd8afa7ade1.tar.bz2
mv-b226f23946987a649fb50bc6d9df2dd8afa7ade1.tar.xz
mv-b226f23946987a649fb50bc6d9df2dd8afa7ade1.zip
Add const attribute to gui classes.
Diffstat (limited to 'src/gui/widgets/tabs')
-rw-r--r--src/gui/widgets/tabs/chat/gmtab.h5
-rw-r--r--src/gui/widgets/tabs/setup_relations.h2
-rw-r--r--src/gui/widgets/tabs/setuptab.h4
3 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/widgets/tabs/chat/gmtab.h b/src/gui/widgets/tabs/chat/gmtab.h
index a120eb745..fdc520c9c 100644
--- a/src/gui/widgets/tabs/chat/gmtab.h
+++ b/src/gui/widgets/tabs/chat/gmtab.h
@@ -36,11 +36,12 @@ class GmTab final : public ChatTab
~GmTab();
protected:
- void getAutoCompleteList(StringVect &names) const override final;
+ void getAutoCompleteList(StringVect &names) const
+ override final A_CONST;
void handleInput(const std::string &msg) override final;
- void handleCommandStr(const std::string &msg) override final;
+ void handleCommandStr(const std::string &msg) override final A_CONST;
};
extern GmTab *gmChatTab;
diff --git a/src/gui/widgets/tabs/setup_relations.h b/src/gui/widgets/tabs/setup_relations.h
index 2d446452e..72abdb313 100644
--- a/src/gui/widgets/tabs/setup_relations.h
+++ b/src/gui/widgets/tabs/setup_relations.h
@@ -48,7 +48,7 @@ class Setup_Relations final : public SetupTab,
void apply() override final;
- void cancel() override final;
+ void cancel() override final A_CONST;
void reset();
diff --git a/src/gui/widgets/tabs/setuptab.h b/src/gui/widgets/tabs/setuptab.h
index a9fd785ef..db9d3c68f 100644
--- a/src/gui/widgets/tabs/setuptab.h
+++ b/src/gui/widgets/tabs/setuptab.h
@@ -53,9 +53,9 @@ class SetupTab notfinal : public Container,
*/
virtual void cancel() = 0;
- virtual void externalUpdated();
+ virtual void externalUpdated() A_CONST;
- virtual void externalUnloaded();
+ virtual void externalUnloaded() A_CONST;
protected:
explicit SetupTab(const Widget2 *const widget);