mirror of
https://github.com/wesnoth/wesnoth
synced 2025-05-03 16:30:04 +00:00
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:
parent
f0fc40dc12
commit
ec02c499c5
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user