Removed const modifer to Widget::update in the 480x272 GUI. (#4397)
I was getting const errors with a recent gcc. So I removed the const modifer to Widget::update in the 480x272 GUI. This caused menu_settings.cpp menuSettings() to complain, because it was being passed a param called 'object' of type pointer to a const T, and then called object->update(), which is not a const function. However, the one call site I found to menuSettings() (menu_settings.cpp:224) is passing currentWidget, which is of type Widget*.
This commit is contained in:
committed by
Bertrand Songis
parent
38934767c8
commit
3bd37bf4e0
@@ -174,7 +174,7 @@ int getOptionsCount(const ZoneOption * options)
|
||||
}
|
||||
|
||||
template <class T>
|
||||
bool menuSettings(const char * title, const T * object, uint32_t i_flags, event_t event)
|
||||
bool menuSettings(const char * title, T * object, uint32_t i_flags, event_t event)
|
||||
{
|
||||
|
||||
if (object->getErrorMessage()) {
|
||||
|
||||
@@ -45,7 +45,7 @@ class Widget
|
||||
{
|
||||
}
|
||||
|
||||
virtual void update() const
|
||||
virtual void update()
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user