Skip to content

Commit

Permalink
Fix MSVC compiler warning about overriding a function
Browse files Browse the repository at this point in the history
Visual Studio 2013 omits a warning if a parameter is const-qualified in the
original function but not the overriding one (or the reverse).
  • Loading branch information
jyrkive committed Nov 20, 2017
1 parent 5535b36 commit 17c0fd9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/gui/widgets/integer_selector.hpp
Expand Up @@ -31,7 +31,7 @@ class integer_selector
}

/** 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;
Expand Down
2 changes: 1 addition & 1 deletion src/gui/widgets/toggle_panel.hpp
Expand Up @@ -96,7 +96,7 @@ class toggle_panel : public panel, public selectable_item
}

/** 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;
Expand Down

0 comments on commit 17c0fd9

Please sign in to comment.