summaryrefslogtreecommitdiff
path: root/src/gui/textcommandeditor.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
committerAndrei Karas <akaras@inbox.ru>2012-08-29 23:40:41 +0300
commit1feb7f7edc5f8f383e594b256ef4cab0fae75b99 (patch)
tree68fe26fdd1ef25645deef894c296b6fbc80b0e13 /src/gui/textcommandeditor.cpp
parent41044107cc0a17125ebd806c9934b6eb636dafe6 (diff)
downloadManaVerse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.gz
ManaVerse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.bz2
ManaVerse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.tar.xz
ManaVerse-1feb7f7edc5f8f383e594b256ef4cab0fae75b99.zip
Add const to more classes.
Diffstat (limited to 'src/gui/textcommandeditor.cpp')
-rw-r--r--src/gui/textcommandeditor.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/gui/textcommandeditor.cpp b/src/gui/textcommandeditor.cpp
index 04dbffd51..b071c78d4 100644
--- a/src/gui/textcommandeditor.cpp
+++ b/src/gui/textcommandeditor.cpp
@@ -161,7 +161,7 @@ public:
};
-TextCommandEditor::TextCommandEditor(TextCommand *command) :
+TextCommandEditor::TextCommandEditor(TextCommand *const command) :
Window(_("Command Editor"), false, nullptr, "commandeditor.xml"),
mIsMagicCommand(command->getCommandType() == TEXT_COMMAND_MAGIC),
mCommand(command),
@@ -193,8 +193,8 @@ TextCommandEditor::TextCommandEditor(TextCommand *command) :
mDeleteButton(new Button(_("Delete"), "delete", this)),
mEnabledKeyboard(keyboard.isEnabled())
{
- int w = 350;
- int h = 370;
+ const int w = 350;
+ const int h = 370;
keyboard.setEnabled(false);
@@ -341,7 +341,7 @@ void TextCommandEditor::reset()
{
}
-void TextCommandEditor::showControls(bool show)
+void TextCommandEditor::showControls(const bool show)
{
mManaField->setVisible(show);
mManaLabel->setVisible(show);