summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDan Goodliffe <dan@randomdan.homeip.net>2022-07-31 16:30:56 +0100
committerDan Goodliffe <dan@randomdan.homeip.net>2022-07-31 16:30:56 +0100
commit6fb836d3825f30ef8d3a76fb2356e299e7bde608 (patch)
treefdfcc5919e310eb763d1b0efba906abf6017d3f5
parentCompose cache keys using std::filesystem::path and its hash_values (diff)
downloadnetfs-6fb836d3825f30ef8d3a76fb2356e299e7bde608.tar.bz2
netfs-6fb836d3825f30ef8d3a76fb2356e299e7bde608.tar.xz
netfs-6fb836d3825f30ef8d3a76fb2356e299e7bde608.zip
Add missing explicit on constructors
-rw-r--r--netfs/ice/typeConverter.h2
-rw-r--r--netfs/lib/baseMapper.h2
-rw-r--r--netfs/unittests/mockDaemon.h4
3 files changed, 4 insertions, 4 deletions
diff --git a/netfs/ice/typeConverter.h b/netfs/ice/typeConverter.h
index affda73..01746c4 100644
--- a/netfs/ice/typeConverter.h
+++ b/netfs/ice/typeConverter.h
@@ -16,7 +16,7 @@ public:
class DLL_PUBLIC EntryTypeConverter : public TypeConverter {
public:
EntryTypeConverter() = default;
- EntryTypeConverter(NetFS::Mapping::MapperPtr);
+ explicit EntryTypeConverter(NetFS::Mapping::MapperPtr);
// Attributes
struct stat convert(const NetFS::Attr &) const;
diff --git a/netfs/lib/baseMapper.h b/netfs/lib/baseMapper.h
index edcdae1..b5bb900 100644
--- a/netfs/lib/baseMapper.h
+++ b/netfs/lib/baseMapper.h
@@ -9,7 +9,7 @@ namespace NetFS {
class BaseMapper {
public:
BaseMapper();
- BaseMapper(const EntryResolverPtr<User> & users);
+ explicit BaseMapper(const EntryResolverPtr<User> & users);
BaseMapper(EntryResolverPtr<User> users, EntryResolverPtr<Group> groups);
protected:
diff --git a/netfs/unittests/mockDaemon.h b/netfs/unittests/mockDaemon.h
index de1e857..ab33c72 100644
--- a/netfs/unittests/mockDaemon.h
+++ b/netfs/unittests/mockDaemon.h
@@ -8,7 +8,7 @@ AdHocFormatter(UniqueExport, "testExport-%?");
class DLL_PUBLIC MockDaemon : public NetFSDaemon {
public:
- MockDaemon(std::string ep);
+ explicit MockDaemon(std::string ep);
const std::string testEndpoint;
@@ -18,7 +18,7 @@ protected:
class DLL_PUBLIC MockDaemonHost {
public:
- MockDaemonHost(std::string ep, Ice::StringSeq ps = {});
+ explicit MockDaemonHost(std::string ep, Ice::StringSeq ps = {});
~MockDaemonHost();
void restart();