From 2970de9c4f81c37c86615abe47b079424ba64fa7 Mon Sep 17 00:00:00 2001 From: Sebastian Messmer Date: Mon, 27 Apr 2015 18:21:33 +0200 Subject: [PATCH] Make constructors explicit where adequate --- fuse/Fuse.h | 2 +- fuse/FuseErrnoException.h | 2 +- impl/FilesystemImpl.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fuse/Fuse.h b/fuse/Fuse.h index acd5c68d..ae0275ff 100644 --- a/fuse/Fuse.h +++ b/fuse/Fuse.h @@ -17,7 +17,7 @@ class Filesystem; class Fuse { public: - Fuse(Filesystem *fs); + explicit Fuse(Filesystem *fs); virtual ~Fuse(); void run(int argc, char **argv); diff --git a/fuse/FuseErrnoException.h b/fuse/FuseErrnoException.h index 7e73a9ff..0c67bf58 100644 --- a/fuse/FuseErrnoException.h +++ b/fuse/FuseErrnoException.h @@ -10,7 +10,7 @@ namespace fuse{ class FuseErrnoException: public std::runtime_error { public: - FuseErrnoException(int errno_); + explicit FuseErrnoException(int errno_); virtual ~FuseErrnoException(); int getErrno() const; diff --git a/impl/FilesystemImpl.h b/impl/FilesystemImpl.h index 169a8e11..1e209051 100644 --- a/impl/FilesystemImpl.h +++ b/impl/FilesystemImpl.h @@ -15,7 +15,7 @@ class OpenFile; class FilesystemImpl: public fuse::Filesystem { public: - FilesystemImpl(Device *device); + explicit FilesystemImpl(Device *device); virtual ~FilesystemImpl(); int openFile(const boost::filesystem::path &path, int flags) override;