From ae9cc0570ad7bd7a879bea1447b12fa9284b569c Mon Sep 17 00:00:00 2001 From: Stanislaw Halik Date: Sat, 23 Dec 2023 12:17:12 +0100 Subject: a --- editor/imgui-raii.hpp | 2 +- editor/scenery-editor.cpp | 2 +- editor/scenery-editor.hpp | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) (limited to 'editor') 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; 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; -- cgit v1.2.3