summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2025-07-07 12:06:52 +0200
committerCarl Hetherington <cth@carlh.net>2025-07-07 12:06:52 +0200
commit4fb11b7f92a104ed53792ca06b7b40a52e3858f6 (patch)
treeffe7485e346a374bc18334185656eb9826efd301
parentde8cd4118d57591804ccd63f979aa9e495df9c93 (diff)
Cleanup: use a boost::filesystem::path
-rw-r--r--src/tools/dcpomatic_player.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/tools/dcpomatic_player.cc b/src/tools/dcpomatic_player.cc
index 60d6911ef..8721a1982 100644
--- a/src/tools/dcpomatic_player.cc
+++ b/src/tools/dcpomatic_player.cc
@@ -1361,11 +1361,11 @@ private:
}
_frame->Show ();
- if (!_dcp_to_load.empty() && dcp::filesystem::is_directory(_dcp_to_load)) {
+ if (_dcp_to_load && dcp::filesystem::is_directory(*_dcp_to_load)) {
try {
- _frame->load_dcp (_dcp_to_load);
+ _frame->load_dcp(*_dcp_to_load);
} catch (exception& e) {
- error_dialog(nullptr, wxString::Format(_("Could not load DCP %s"), std_to_wx(_dcp_to_load)), std_to_wx(e.what()));
+ error_dialog(nullptr, wxString::Format(_("Could not load DCP %s"), std_to_wx(_dcp_to_load->string())), std_to_wx(e.what()));
}
}
@@ -1478,7 +1478,7 @@ private:
}
DOMFrame* _frame = nullptr;
- string _dcp_to_load;
+ boost::optional<boost::filesystem::path> _dcp_to_load;
boost::optional<string> _stress;
};