diff options
author | David Robillard <d@drobilla.net> | 2024-10-06 16:56:04 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-10-11 19:37:24 -0400 |
commit | 1ecbb458c9877cf18d0438449d8757fb713d46d2 (patch) | |
tree | 62696de1f35cef8188cc79abe1da3097d431f845 /include/ingen/Library.hpp | |
parent | 9009631bdf6d1142a13335ececbc1f78daf3fdf0 (diff) | |
download | ingen-1ecbb458c9877cf18d0438449d8757fb713d46d2.tar.gz ingen-1ecbb458c9877cf18d0438449d8757fb713d46d2.tar.bz2 ingen-1ecbb458c9877cf18d0438449d8757fb713d46d2.zip |
Make more single-argument constructors explicit
Diffstat (limited to 'include/ingen/Library.hpp')
-rw-r--r-- | include/ingen/Library.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |