Make constructors explicit where adequate

This commit is contained in:
Sebastian Messmer 2015-04-27 18:21:33 +02:00
parent 65eb73e7d9
commit 2970de9c4f
3 changed files with 3 additions and 3 deletions

View File

@ -17,7 +17,7 @@ class Filesystem;
class Fuse {
public:
Fuse(Filesystem *fs);
explicit Fuse(Filesystem *fs);
virtual ~Fuse();
void run(int argc, char **argv);

View File

@ -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;

View File

@ -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;