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/wx/server_dialog.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/wx/server_dialog.h') diff --git a/src/wx/server_dialog.h b/src/wx/server_dialog.h index 92b417a4c..0ff032fc4 100644 --- a/src/wx/server_dialog.h +++ b/src/wx/server_dialog.h @@ -27,7 +27,7 @@ public: explicit ServerDialog (wxWindow *); void set (std::string); - boost::optional get () const; + std::vector get() const; private: wxTextCtrl* _host; -- cgit v1.2.3