]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
chore: Add missing explicit keywords to some constructors
authorJoel Rosdahl <joel@rosdahl.net>
Fri, 30 Dec 2022 20:59:18 +0000 (21:59 +0100)
committerJoel Rosdahl <joel@rosdahl.net>
Wed, 11 Jan 2023 18:42:31 +0000 (19:42 +0100)
src/storage/local/StatsFile.hpp
src/util/LockFile.hpp

index e657aa3a4c625437331aa5d4278794533b3f3276..4bcba1c290feae204bad00ed325a4e9d0e0ac40b 100644 (file)
@@ -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.
index c1f336323141687d1533b6c89b1a08f3e9d911a6..bdb3f8cb9b1f39b6c6a70709f78fd2c334989f46 100644 (file)
@@ -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();