From b29a0f4bc67f6f8cc84c3d88cdbb9582e35d3fed Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Thu, 20 Feb 2025 23:06:59 +0100 Subject: Return std::vector instead of boost::optional from the EditableList dialog. It's a bit clumsy, as returning more than one thing only makes sense when adding (not when editing), but allowing both optional and vector with template voodoo seems awkward (at least with C++11). --- src/tools/dcpomatic_editor.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/tools/dcpomatic_editor.cc') diff --git a/src/tools/dcpomatic_editor.cc b/src/tools/dcpomatic_editor.cc index 2f86851c8..1e0d5672d 100644 --- a/src/tools/dcpomatic_editor.cc +++ b/src/tools/dcpomatic_editor.cc @@ -158,8 +158,8 @@ public: SetSizerAndFit(_sizer); } - optional> get() { - return _reel; + vector> get() { + return { _reel }; } void set(shared_ptr reel) -- cgit v1.2.3