diff options
| author | Carl Hetherington <cth@carlh.net> | 2023-11-11 01:31:58 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2023-11-12 22:11:27 +0100 |
| commit | dfa7b94e802b05bba4243381460eef96626102a0 (patch) | |
| tree | 348ab6b50c7b074e351f2577101ae583a1597c58 /src/wx/file_picker_ctrl.cc | |
| parent | 0f225b6df7a9603678a5bd84f9428ff6fb56aea2 (diff) | |
Replace deprecated leaf() with filename().
Diffstat (limited to 'src/wx/file_picker_ctrl.cc')
| -rw-r--r-- | src/wx/file_picker_ctrl.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/file_picker_ctrl.cc b/src/wx/file_picker_ctrl.cc index bf4877891..4bb6518ef 100644 --- a/src/wx/file_picker_ctrl.cc +++ b/src/wx/file_picker_ctrl.cc @@ -61,7 +61,7 @@ FilePickerCtrl::SetPath (wxString p) _path = p; if (!_path.IsEmpty ()) { - _file->SetLabel (std_to_wx (filesystem::path (wx_to_std (_path)).leaf().string())); + _file->SetLabel(std_to_wx(filesystem::path(wx_to_std(_path)).filename().string())); } else { _file->SetLabel (_("(None)")); } |
