summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2022-12-30 21:59:18 +0100
committerJoel Rosdahl <joel@rosdahl.net>2023-01-11 19:42:31 +0100
commit52f0cfce011289ce49ee67db7cd0f70637aba59c (patch)
tree62dd69c55d02c1bd9465cb20ad80b80953120fb9 /src
parentdfb749a6c871babefff358c3b1a460a33dea67a0 (diff)
downloadccache-52f0cfce011289ce49ee67db7cd0f70637aba59c.tar.gz
chore: Add missing explicit keywords to some constructors
Diffstat (limited to 'src')
-rw-r--r--src/storage/local/StatsFile.hpp2
-rw-r--r--src/util/LockFile.hpp2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/local/StatsFile.hpp b/src/storage/local/StatsFile.hpp
index e657aa3a..4bcba1c2 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 c1f33632..bdb3f8cb 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();