mirror of
https://github.com/sockspls/badfish
synced 2025-04-30 08:43:09 +00:00
Revert "Simplify Option c'tor"
std::to_string() is C++11 material, not c++03. So revert the patch.
This commit is contained in:
parent
37db62b2ea
commit
2379312028
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
{ defaultValue = currentValue = std::to_string(v); }
|
||||
{ std::ostringstream ss; ss << v; defaultValue = currentValue = ss.str(); }
|
||||
|
||||
|
||||
Option::operator int() const {
|
||||
|
|
Loading…
Add table
Reference in a new issue