summaryrefslogtreecommitdiffhomepage
path: root/editor
diff options
context:
space:
mode:
authorStanislaw Halik <sthalik@misaki.pl>2023-12-23 12:17:12 +0100
committerStanislaw Halik <sthalik@misaki.pl>2023-12-23 12:17:12 +0100
commitae9cc0570ad7bd7a879bea1447b12fa9284b569c (patch)
treed112ccc202f04b3d100652504ed8aaf39ed068da /editor
parenta737d0cea5ca8bdcd3f9cfc38e29f8a15992ca3e (diff)
a
Diffstat (limited to 'editor')
-rw-r--r--editor/imgui-raii.hpp2
-rw-r--r--editor/scenery-editor.cpp2
-rw-r--r--editor/scenery-editor.hpp2
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;