From 52f0cfce011289ce49ee67db7cd0f70637aba59c Mon Sep 17 00:00:00 2001 From: Joel Rosdahl Date: Fri, 30 Dec 2022 21:59:18 +0100 Subject: [PATCH] chore: Add missing explicit keywords to some constructors --- src/storage/local/StatsFile.hpp | 2 +- src/util/LockFile.hpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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(); -- 2.47.2