From 1ecbb458c9877cf18d0438449d8757fb713d46d2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 6 Oct 2024 16:56:04 -0400 Subject: Make more single-argument constructors explicit --- include/ingen/Library.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'include/ingen/Library.hpp') diff --git a/include/ingen/Library.hpp b/include/ingen/Library.hpp index 4cee985f..ac494e4c 100644 --- a/include/ingen/Library.hpp +++ b/include/ingen/Library.hpp @@ -26,7 +26,7 @@ namespace ingen { class INGEN_API Library { public: - Library(const FilePath& path); + explicit Library(const FilePath& path); ~Library(); Library(const Library&) = delete; @@ -40,7 +40,7 @@ public: static const char* get_last_error(); - operator bool() const { return _lib; } + explicit operator bool() const { return _lib; } private: void* _lib; -- cgit v1.2.1