summaryrefslogtreecommitdiff
path: root/src/wx/time_picker.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2024-08-10 00:41:52 +0200
committerCarl Hetherington <cth@carlh.net>2024-09-03 17:02:24 +0200
commitc97de27f9c5364b6f126016c5e1f31a76d5ce565 (patch)
treef29bd3c22e60f9abdfbe46f145279d9af7aa7256 /src/wx/time_picker.cc
parent5ed17cd197aa743922da18e2a5753f746d38122e (diff)
Remove use of wxT in favour of char_to_wx().
The wxWidgets docs advise against its use these days.
Diffstat (limited to 'src/wx/time_picker.cc')
-rw-r--r--src/wx/time_picker.cc16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/wx/time_picker.cc b/src/wx/time_picker.cc
index 8016f79f5..acdca1301 100644
--- a/src/wx/time_picker.cc
+++ b/src/wx/time_picker.cc
@@ -52,14 +52,14 @@ TimePickerSpin::TimePickerSpin (wxWindow* parent, wxDateTime time)
: TimePicker (parent)
{
wxClientDC dc (parent);
- wxSize size = dc.GetTextExtent (wxT ("9999999"));
+ wxSize size = dc.GetTextExtent(char_to_wx("9999999"));
size.SetHeight (-1);
wxBoxSizer* sizer = new wxBoxSizer (wxHORIZONTAL);
- _hours = new wxSpinCtrl (this, wxID_ANY, wxT(""), wxDefaultPosition, size);
+ _hours = new wxSpinCtrl(this, wxID_ANY, {}, wxDefaultPosition, size);
sizer->Add (_hours, 1, wxLEFT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_GAP);
- sizer->Add (new StaticText(this, wxT(":")), 0, wxALIGN_CENTER_VERTICAL);
- _minutes = new wxSpinCtrl (this, wxID_ANY, wxT(""), wxDefaultPosition, size);
+ sizer->Add(new StaticText(this, char_to_wx(":")), 0, wxALIGN_CENTER_VERTICAL);
+ _minutes = new wxSpinCtrl(this, wxID_ANY, {}, wxDefaultPosition, size);
sizer->Add (_minutes, 1, wxRIGHT | wxALIGN_CENTER_VERTICAL, DCPOMATIC_SIZER_GAP);
SetSizerAndFit (sizer);
@@ -101,14 +101,14 @@ TimePickerText::TimePickerText (wxWindow* parent, wxDateTime time)
: TimePicker (parent)
{
wxClientDC dc (parent);
- wxSize size = dc.GetTextExtent (wxT("99999"));
+ wxSize size = dc.GetTextExtent(char_to_wx("99999"));
size.SetHeight (-1);
wxBoxSizer* sizer = new wxBoxSizer (wxHORIZONTAL);
- _hours = new wxTextCtrl (this, wxID_ANY, wxT(""), wxDefaultPosition, size);
+ _hours = new wxTextCtrl(this, wxID_ANY, {}, wxDefaultPosition, size);
sizer->Add (_hours, 1, wxEXPAND | wxLEFT, DCPOMATIC_SIZER_GAP);
- sizer->Add (new StaticText (this, wxT (":")), 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, 4);
- _minutes = new wxTextCtrl (this, wxID_ANY, wxT(""), wxDefaultPosition, size);
+ sizer->Add(new StaticText(this, char_to_wx(":")), 0, wxLEFT | wxRIGHT | wxALIGN_CENTER_VERTICAL, 4);
+ _minutes = new wxTextCtrl(this, wxID_ANY, {}, wxDefaultPosition, size);
sizer->Add (_minutes, 1, wxEXPAND | wxRIGHT, DCPOMATIC_SIZER_GAP);
SetSizerAndFit (sizer);