From: Joel Rosdahl Date: Fri, 30 Dec 2022 20:59:18 +0000 (+0100) Subject: chore: Add missing explicit keywords to some constructors X-Git-Tag: v4.8~57 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=52f0cfce011289ce49ee67db7cd0f70637aba59c;p=thirdparty%2Fccache.git chore: Add missing explicit keywords to some constructors --- diff --git a/src/storage/local/StatsFile.hpp b/src/storage/local/StatsFile.hpp index e657aa3a4..4bcba1c29 100644 --- a/src/storage/local/StatsFile.hpp +++ b/src/storage/local/StatsFile.hpp @@ -29,7 +29,7 @@ namespace storage::local { class StatsFile { public: - StatsFile(const std::string& path); + explicit StatsFile(const std::string& path); // Read counters. No lock is acquired. If the file doesn't exist all returned // counters will be zero. diff --git a/src/util/LockFile.hpp b/src/util/LockFile.hpp index c1f336323..bdb3f8cb9 100644 --- a/src/util/LockFile.hpp +++ b/src/util/LockFile.hpp @@ -33,7 +33,7 @@ namespace util { class LockFile : NonCopyable { public: - LockFile(const std::string& path); + explicit LockFile(const std::string& path); // Release the lock if previously acquired. ~LockFile();