From 54141c7a9504e289d41af997067ca6b78a1d4b0a Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 28 Apr 2022 22:12:54 +0200 Subject: Fix (I think) some strange situations where ::get() on dialogs used by EditableList would return something that wasn't a optional<> but would then get implicitly cast to one. Now we have a static_assert to check that the type is what we expect. --- src/tools/dcpomatic_combiner.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/tools') diff --git a/src/tools/dcpomatic_combiner.cc b/src/tools/dcpomatic_combiner.cc index 40587e23a..4532b0429 100644 --- a/src/tools/dcpomatic_combiner.cc +++ b/src/tools/dcpomatic_combiner.cc @@ -65,7 +65,7 @@ public: } - boost::filesystem::path get () const + optional get () const { return boost::filesystem::path(wx_to_std(GetPath())); } -- cgit v1.2.3