diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-26 00:22:12 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-12-26 00:27:12 +0100 |
| commit | c87429313b25d102201a013e22e01dae8ba78b5b (patch) | |
| tree | f8265c937f8297712f7ab3680f2b0ede81c94ddf /src/wx/wx_util.cc | |
| parent | 8caf013a9b8d709ed7c3d5e9febee0067e6fcf1f (diff) | |
Use fmt::format() instead of locale_convert<string>
In some places I just used to_string() as there seems no point in
localising things like small ints.
Diffstat (limited to 'src/wx/wx_util.cc')
| -rw-r--r-- | src/wx/wx_util.cc | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/wx/wx_util.cc b/src/wx/wx_util.cc index 66ff200cc..213a564c7 100644 --- a/src/wx/wx_util.cc +++ b/src/wx/wx_util.cc @@ -593,17 +593,17 @@ setup_audio_channels_choice (wxChoice* choice, int minimum) vector<pair<string, string>> items; for (int i = minimum; i <= 16; i += 2) { if (i == 2) { - items.push_back (make_pair(wx_to_std(_("2 - stereo")), locale_convert<string>(i))); + items.push_back(make_pair(wx_to_std(_("2 - stereo")), fmt::to_string(i))); } else if (i == 4) { - items.push_back (make_pair(wx_to_std(_("4 - L/C/R/Lfe")), locale_convert<string>(i))); + items.push_back(make_pair(wx_to_std(_("4 - L/C/R/Lfe")), fmt::to_string(i))); } else if (i == 6) { - items.push_back (make_pair(wx_to_std(_("6 - 5.1")), locale_convert<string>(i))); + items.push_back(make_pair(wx_to_std(_("6 - 5.1")), fmt::to_string(i))); } else if (i == 8) { - items.push_back (make_pair(wx_to_std(_("8 - 5.1/HI/VI")), locale_convert<string>(i))); + items.push_back(make_pair(wx_to_std(_("8 - 5.1/HI/VI")), fmt::to_string(i))); } else if (i == 12) { - items.push_back (make_pair(wx_to_std(_("12 - 7.1/HI/VI")), locale_convert<string>(i))); + items.push_back(make_pair(wx_to_std(_("12 - 7.1/HI/VI")), fmt::to_string(i))); } else { - items.push_back (make_pair(locale_convert<string> (i), locale_convert<string>(i))); + items.push_back(make_pair(fmt::to_string(i), fmt::to_string(i))); } } |
