mirror of
https://github.com/opelly27/Stockfish.git
synced 2026-05-20 06:17:49 +00:00
Simplify Option c'tor
No functional change.
This commit is contained in:
+1
-1
@@ -127,7 +127,7 @@ Option::Option(Fn* f) : type("button"), min(0), max(0), idx(Options.size()), on_
|
|||||||
{}
|
{}
|
||||||
|
|
||||||
Option::Option(int v, int minv, int maxv, Fn* f) : type("spin"), min(minv), max(maxv), idx(Options.size()), on_change(f)
|
Option::Option(int v, int minv, int maxv, Fn* f) : type("spin"), min(minv), max(maxv), idx(Options.size()), on_change(f)
|
||||||
{ std::ostringstream ss; ss << v; defaultValue = currentValue = ss.str(); }
|
{ defaultValue = currentValue = std::to_string(v); }
|
||||||
|
|
||||||
|
|
||||||
Option::operator int() const {
|
Option::operator int() const {
|
||||||
|
|||||||
Reference in New Issue
Block a user