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:
2018-04-05 05:36:13 +02:00
parent a84eaa6b33
commit 86e9f742e6

View File

@@ -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