diff --git a/specter/include/specter/FileBrowser.hpp b/specter/include/specter/FileBrowser.hpp index b49743296..2b02ff574 100644 --- a/specter/include/specter/FileBrowser.hpp +++ b/specter/include/specter/FileBrowser.hpp @@ -226,8 +226,7 @@ private: public: FileBrowser(ViewResources& res, View& parentView, std::string_view title, Type type, - std::function returnFunc) - : FileBrowser(res, parentView, title, type, hecl::GetcwdStr(), returnFunc) {} + std::function returnFunc); FileBrowser(ViewResources& res, View& parentView, std::string_view title, Type type, hecl::SystemStringView initialPath, std::function returnFunc); ~FileBrowser() override; diff --git a/specter/lib/FileBrowser.cpp b/specter/lib/FileBrowser.cpp index 3ae19a947..3b9bd59d6 100644 --- a/specter/lib/FileBrowser.cpp +++ b/specter/lib/FileBrowser.cpp @@ -43,6 +43,10 @@ std::vector FileBrowser::PathComponents(hecl::SystemStringVi return ret; } +FileBrowser::FileBrowser(ViewResources& res, View& parentView, std::string_view title, Type type, + std::function returnFunc) +: FileBrowser(res, parentView, title, type, hecl::GetcwdStr(), std::move(returnFunc)) {} + FileBrowser::FileBrowser(ViewResources& res, View& parentView, std::string_view title, Type type, hecl::SystemStringView initialPath, std::function returnFunc)