diff options
Diffstat (limited to 'editor')
-rw-r--r-- | editor/imgui-raii.hpp | 2 | ||||
-rw-r--r-- | editor/scenery-editor.cpp | 2 | ||||
-rw-r--r-- | editor/scenery-editor.hpp | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/editor/imgui-raii.hpp b/editor/imgui-raii.hpp index 3a18f84f..7f65e63a 100644 --- a/editor/imgui-raii.hpp +++ b/editor/imgui-raii.hpp @@ -17,7 +17,7 @@ struct raii_wrapper final raii_wrapper& operator=(const raii_wrapper&) = delete; raii_wrapper& operator=(raii_wrapper&&) noexcept; raii_wrapper(raii_wrapper&& other) noexcept; - operator bool() const noexcept; + explicit operator bool() const noexcept; private: F dtor = nullptr; diff --git a/editor/scenery-editor.cpp b/editor/scenery-editor.cpp index b1871221..40742c8a 100644 --- a/editor/scenery-editor.cpp +++ b/editor/scenery-editor.cpp @@ -14,7 +14,7 @@ using rotation_t = std::underlying_type_t<enum rotation>; scenery_editor::scenery_::operator bool() const noexcept { - return proto; + return !!proto; } scenery_editor::scenery_editor() noexcept diff --git a/editor/scenery-editor.hpp b/editor/scenery-editor.hpp index 8a48373f..999e9e15 100644 --- a/editor/scenery-editor.hpp +++ b/editor/scenery-editor.hpp @@ -17,7 +17,7 @@ public: struct scenery_ final { String name, descr; scenery_proto proto; - operator bool() const noexcept; + explicit operator bool() const noexcept; }; scenery_editor() noexcept; |