X-Git-Url: https://git.sesse.net/?p=stockfish;a=blobdiff_plain;f=src%2Fucioption.cpp;h=9e992be55c26e7fd50462fb4ac5748393d37862e;hp=054b6c1713b0b35ebff90653a8c5ae6c013ceb71;hb=f0701e2b0f4283ba558e7d8cab8e41cf11a19cdd;hpb=07b45151d2f7abfac7030f3bf401a36b5b8c7b8b diff --git a/src/ucioption.cpp b/src/ucioption.cpp index 054b6c17..9e992be5 100644 --- a/src/ucioption.cpp +++ b/src/ucioption.cpp @@ -23,6 +23,7 @@ //// #include +#include #include #include #include @@ -55,93 +56,92 @@ namespace { struct Option { - std::string name, defaultValue, currentValue; + std::string defaultValue, currentValue; OptionType type; int minValue, maxValue; ComboValues comboValues; - Option(const char* name, const char* defaultValue, OptionType = STRING); - Option(const char* name, bool defaultValue, OptionType = CHECK); - Option(const char* name, int defaultValue, int minValue, int maxValue); + Option(); + Option(const std::string& defaultValue, OptionType = STRING); + Option(bool defaultValue, OptionType = CHECK); + Option(int defaultValue, int minValue, int maxValue); }; - typedef std::vector