summaryrefslogtreecommitdiff
path: root/src/wx/time_picker.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2016-08-11 12:49:23 +0100
committerCarl Hetherington <cth@carlh.net>2016-08-12 09:14:06 +0100
commit94056bf7f8fdef32da3cd78eff68d58560b4e6be (patch)
tree937fad363dc94d65ec20fa2ff7aa3b303310d80f /src/wx/time_picker.cc
parent73654117144c6de0ec4efe39ddc88485df546cc9 (diff)
Replace incorrect uses of raw_convert with a new locale_convert.
Diffstat (limited to 'src/wx/time_picker.cc')
-rw-r--r--src/wx/time_picker.cc7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/wx/time_picker.cc b/src/wx/time_picker.cc
index 1378af967..bddf615d0 100644
--- a/src/wx/time_picker.cc
+++ b/src/wx/time_picker.cc
@@ -20,7 +20,7 @@
#include "time_picker.h"
#include "wx_util.h"
-#include <dcp/raw_convert.h>
+#include "lib/locale_convert.h"
#include <wx/spinctrl.h>
#include <boost/bind.hpp>
#include <iomanip>
@@ -32,7 +32,6 @@ using std::max;
using std::string;
using std::cout;
using boost::bind;
-using dcp::raw_convert;
TimePicker::TimePicker (wxWindow* parent, wxDateTime time)
: wxPanel (parent)
@@ -97,8 +96,8 @@ TimePicker::update_spin ()
}
_block_update = true;
- _hours_spin->SetValue (raw_convert<int> (wx_to_std (_hours->GetValue())));
- _minutes_spin->SetValue (raw_convert<int> (wx_to_std (_minutes->GetValue())));
+ _hours_spin->SetValue (locale_convert<int> (wx_to_std (_hours->GetValue())));
+ _minutes_spin->SetValue (locale_convert<int> (wx_to_std (_minutes->GetValue())));
_block_update = false;
Changed ();