summaryrefslogtreecommitdiffstats
path: root/include/ingen/Library.hpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-10-06 16:56:04 -0400
committerDavid Robillard <d@drobilla.net>2024-10-11 19:37:24 -0400
commit1ecbb458c9877cf18d0438449d8757fb713d46d2 (patch)
tree62696de1f35cef8188cc79abe1da3097d431f845 /include/ingen/Library.hpp
parent9009631bdf6d1142a13335ececbc1f78daf3fdf0 (diff)
downloadingen-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.hpp4
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;