From 802c17175e595ddb3075465a1febc432262bcc3f Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 12 Nov 2022 04:05:21 +0100 Subject: use Corrade's Optional instead of stl --- loader/loader-impl.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'loader') diff --git a/loader/loader-impl.cpp b/loader/loader-impl.cpp index 5d97d91c..955ccf03 100644 --- a/loader/loader-impl.cpp +++ b/loader/loader-impl.cpp @@ -9,7 +9,6 @@ #include #include #include -#include #include #include #include @@ -31,7 +30,7 @@ namespace floormat { struct loader_impl final : loader_ { - std::optional shader_res; + Optional shader_res; PluginManager::Manager importer_plugins; Containers::Pointer image_importer = importer_plugins.loadAndInstantiate("StbImageImporter"); @@ -60,7 +59,7 @@ struct loader_impl final : loader_ StringView loader_impl::shader(StringView filename) { if (!shader_res) - shader_res = std::make_optional("floormat/shaders"); + shader_res = Optional(InPlaceInit, "floormat/shaders"); auto ret = shader_res->getString(filename); if (ret.isEmpty()) fm_abort("can't find shader resource '%s'", filename.cbegin()); -- cgit v1.2.3