diff --git a/hecl/include/hecl/hecl.hpp b/hecl/include/hecl/hecl.hpp index 44b306a03..7ab9fd591 100644 --- a/hecl/include/hecl/hecl.hpp +++ b/hecl/include/hecl/hecl.hpp @@ -1110,9 +1110,9 @@ class ResourceLock { bool good; public: - operator bool() const { return good; } + explicit operator bool() const { return good; } static bool InProgress(const ProjectPath& path); - ResourceLock(const ProjectPath& path) { good = SetThreadRes(path); } + explicit ResourceLock(const ProjectPath& path) : good{SetThreadRes(path)} {} ~ResourceLock() { if (good) ClearThreadRes();