Fix MSVC compiler warning about overriding a function

Visual Studio 2013 omits a warning if a parameter is const-qualified in the
original function but not the overriding one (or the reverse).
This commit is contained in:
Jyrki Vesterinen 2017-11-16 19:33:58 +02:00
parent f0fc40dc12
commit ec02c499c5
2 changed files with 2 additions and 2 deletions

View File

@ -31,7 +31,7 @@ public:
}
/** Sets the selected value. */
virtual void set_value(const int value) = 0;
virtual void set_value(int value) = 0;
/** Gets the selected value. */
virtual int get_value() const = 0;

View File

@ -96,7 +96,7 @@ public:
}
/** Inherited from selectable_item */
void set_value(const unsigned selected, bool fire_event = false) override;
void set_value(unsigned selected, bool fire_event = false) override;
/** Inherited from selectable_item */
unsigned num_states() const override;