diff options
| author | Carl Hetherington <cth@carlh.net> | 2024-12-23 21:53:32 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2024-12-26 00:27:08 +0100 |
| commit | 8caf013a9b8d709ed7c3d5e9febee0067e6fcf1f (patch) | |
| tree | 40da87cb357e8b1c54a1464bdbac2d014640e30c /src/wx/about_dialog.cc | |
| parent | cec6ff92aef45c687085ecfc1059004407c18c57 (diff) | |
Replace String::compose with fmt::format().
Diffstat (limited to 'src/wx/about_dialog.cc')
| -rw-r--r-- | src/wx/about_dialog.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/wx/about_dialog.cc b/src/wx/about_dialog.cc index 345ae2582..258a87df0 100644 --- a/src/wx/about_dialog.cc +++ b/src/wx/about_dialog.cc @@ -27,7 +27,6 @@ #include "static_text.h" #include "wx_util.h" #include "wx_variant.h" -#include "lib/compose.hpp" #include "lib/variant.h" #include "lib/version.h" #include <dcp/warnings.h> @@ -35,6 +34,7 @@ LIBDCP_DISABLE_WARNINGS #include <wx/notebook.h> #include <wx/hyperlink.h> LIBDCP_ENABLE_WARNINGS +#include <fmt/format.h> using std::vector; @@ -61,9 +61,9 @@ AboutDialog::AboutDialog (wxWindow* parent) wxString s; if (strcmp (dcpomatic_git_commit, "release") == 0) { - t = new StaticText (this, std_to_wx(String::compose("Version %1", dcpomatic_version))); + t = new StaticText(this, std_to_wx(fmt::format("Version {}", dcpomatic_version))); } else { - t = new StaticText (this, std_to_wx(String::compose("Version %1 git %2", dcpomatic_version, dcpomatic_git_commit))); + t = new StaticText(this, std_to_wx(fmt::format("Version {} git {}", dcpomatic_version, dcpomatic_git_commit))); } t->SetFont (version_font); sizer->Add (t, wxSizerFlags().Centre().Border(wxALL, 2)); |
