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 { class Fuse {
public: public:
Fuse(Filesystem *fs); explicit Fuse(Filesystem *fs);
virtual ~Fuse(); virtual ~Fuse();
void run(int argc, char **argv); void run(int argc, char **argv);

View File

@ -10,7 +10,7 @@ namespace fuse{
class FuseErrnoException: public std::runtime_error { class FuseErrnoException: public std::runtime_error {
public: public:
FuseErrnoException(int errno_); explicit FuseErrnoException(int errno_);
virtual ~FuseErrnoException(); virtual ~FuseErrnoException();
int getErrno() const; int getErrno() const;

View File

@ -15,7 +15,7 @@ class OpenFile;
class FilesystemImpl: public fuse::Filesystem { class FilesystemImpl: public fuse::Filesystem {
public: public:
FilesystemImpl(Device *device); explicit FilesystemImpl(Device *device);
virtual ~FilesystemImpl(); virtual ~FilesystemImpl();
int openFile(const boost::filesystem::path &path, int flags) override; int openFile(const boost::filesystem::path &path, int flags) override;