mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-31 17:31:20 +02:00
src/gui/widget/menue.h: fix possible compile error with older compliers
avoids possible error with extended initializer lists, only available with -std=c++11 or -std=gnu++11 supplement to: 'CMenuOptionNumberChooser: expand localize functionality for any number'
This commit is contained in:
@@ -367,7 +367,13 @@ private:
|
||||
void setNumberFormat(std::string format) { numberFormat = format; }
|
||||
void setNumberFormat(std::string (*fun)(int)) { numberFormatFunction = fun; }
|
||||
void setNumericInput(bool _numeric_input) { numeric_input = _numeric_input; }
|
||||
void setLocalizedValue(int special_value, neutrino_locale_t special_value_name) { localized.push_back({special_value, special_value_name}); }
|
||||
void setLocalizedValue(int special_value, neutrino_locale_t special_value_name)
|
||||
{
|
||||
localized_value_t loc;
|
||||
loc.value = special_value;
|
||||
loc.value_name = special_value_name;
|
||||
localized.push_back(loc);
|
||||
}
|
||||
};
|
||||
|
||||
class CMenuOptionChooserOptions
|
||||
|
Reference in New Issue
Block a user