projects
/
fairystockfish.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
b50ce5e
)
Simplify Option c'tor
author
Marco Costalba
<mcostalba@gmail.com>
Thu, 6 Sep 2012 16:16:37 +0000 (18:16 +0200)
committer
Marco Costalba
<mcostalba@gmail.com>
Thu, 6 Sep 2012 16:18:13 +0000 (18:18 +0200)
No functional change.
src/ucioption.cpp
patch
|
blob
|
history
diff --git
a/src/ucioption.cpp
b/src/ucioption.cpp
index
bbbbbbf
..
f76263e
100644
(file)
--- a/
src/ucioption.cpp
+++ b/
src/ucioption.cpp
@@
-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)
-{ std::ostringstream ss; ss << v; defaultValue = currentValue = ss.str(); }
+{ defaultValue = currentValue = std::to_string(v); }
Option::operator int() const {