summaryrefslogtreecommitdiff
path: root/src/gui/textcommandeditor.cpp
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-09-26 13:54:12 +0300
committerAndrei Karas <akaras@inbox.ru>2013-09-26 14:41:36 +0300
commit851cc4e95093cb7bd1adce99be95a864d68f8d38 (patch)
tree50096efbfea146de63432ca95d1faacdbd62df80 /src/gui/textcommandeditor.cpp
parent476a73f07d4dae7f0cc3c79a44fbd2c2f8c4bf5f (diff)
downloadplus-851cc4e95093cb7bd1adce99be95a864d68f8d38.tar.gz
plus-851cc4e95093cb7bd1adce99be95a864d68f8d38.tar.bz2
plus-851cc4e95093cb7bd1adce99be95a864d68f8d38.tar.xz
plus-851cc4e95093cb7bd1adce99be95a864d68f8d38.zip
remove useless virtual keywords.
Diffstat (limited to 'src/gui/textcommandeditor.cpp')
-rw-r--r--src/gui/textcommandeditor.cpp19
1 files changed, 9 insertions, 10 deletions
diff --git a/src/gui/textcommandeditor.cpp b/src/gui/textcommandeditor.cpp
index e947a09de..d960f20f7 100644
--- a/src/gui/textcommandeditor.cpp
+++ b/src/gui/textcommandeditor.cpp
@@ -73,15 +73,15 @@ public:
A_DELETE_COPY(IconsModal)
- virtual ~IconsModal()
+ ~IconsModal()
{ }
- virtual int getNumberOfElements() override
+ int getNumberOfElements() override
{
return static_cast<int>(mStrings.size());
}
- virtual std::string getElementAt(int i) override
+ std::string getElementAt(int i) override
{
if (i < 0 || i >= getNumberOfElements())
return "???";
@@ -121,15 +121,15 @@ const char *MAGIC_SCHOOL_TEXT[6] =
class TargetTypeModel final : public gcn::ListModel
{
public:
- virtual ~TargetTypeModel()
+ ~TargetTypeModel()
{ }
- virtual int getNumberOfElements() override
+ int getNumberOfElements() override
{
return 3;
}
- virtual std::string getElementAt(int i) override
+ std::string getElementAt(int i) override
{
if (i >= getNumberOfElements() || i < 0)
return "???";
@@ -140,15 +140,15 @@ public:
class MagicSchoolModel final : public gcn::ListModel
{
public:
- virtual ~MagicSchoolModel()
+ ~MagicSchoolModel()
{ }
- virtual int getNumberOfElements() override
+ int getNumberOfElements() override
{
return 6;
}
- virtual std::string getElementAt(int i) override
+ std::string getElementAt(int i) override
{
if (i >= getNumberOfElements() || i < 0)
return "???";
@@ -156,7 +156,6 @@ public:
}
};
-
TextCommandEditor::TextCommandEditor(TextCommand *const command) :
// TRANSLATORS: command editor name
Window(_("Command Editor"), false, nullptr, "commandeditor.xml"),