Remove all use of stringstream in an attempt to fix
[dcpomatic.git] / src / wx / time_picker.cc
index a18182138af0be609e4136315d329333f80ef4d8..4706c896b03bc0cfad3c87c151f8dd853e3bf79a 100644 (file)
@@ -80,11 +80,8 @@ TimePicker::update_text ()
 
        _block_update = true;
 
-       _hours->SetValue (std_to_wx (raw_convert<string> (_hours_spin->GetValue ())));
-
-       locked_stringstream m;
-       m << setfill('0') << setw(2) << _minutes_spin->GetValue();
-       _minutes->SetValue (std_to_wx (m.str()));
+       _hours->SetValue (wxString::Format ("%d", _hours_spin->GetValue ()));
+       _minutes->SetValue (wxString::Format ("%02d", _minutes_spin->GetValue ()));
 
        _block_update = false;