mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-09-02 18:31:12 +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'
Origin commit data
------------------
Branch: ni/coolstream
Commit: dc21b3d5da
Author: Thilo Graf <dbt@novatux.de>
Date: 2018-04-05 (Thu, 05 Apr 2018)
------------------
This commit was generated by Migit
This commit is contained in:
@@ -370,7 +370,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