From 1feb7f7edc5f8f383e594b256ef4cab0fae75b99 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Wed, 29 Aug 2012 23:40:41 +0300 Subject: Add const to more classes. --- src/gui/textcommandeditor.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/gui/textcommandeditor.cpp') 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); -- cgit v1.2.3-70-g09d2