diff --git a/samples/Jzon.cpp b/samples/Jzon.cpp index 7bc10c1e..10d7b389 100644 --- a/samples/Jzon.cpp +++ b/samples/Jzon.cpp @@ -41,7 +41,7 @@ namespace Jzon { SetFormat(NoFormat); } - FormatInterpreter(const Format &format) + explicit FormatInterpreter(const Format &format) { SetFormat(format); } diff --git a/src/basicio.cpp b/src/basicio.cpp index 420a6154..561101c3 100644 --- a/src/basicio.cpp +++ b/src/basicio.cpp @@ -81,7 +81,7 @@ namespace Exiv2 { class FileIo::Impl { public: //! Constructor - Impl(std::string path); + explicit Impl(std::string path); #ifdef EXV_UNICODE_PATH //! Constructor accepting a unicode path in an std::wstring Impl(const std::wstring& wpath); diff --git a/src/exif.cpp b/src/exif.cpp index 77147e9c..9e12eac4 100644 --- a/src/exif.cpp +++ b/src/exif.cpp @@ -55,7 +55,9 @@ namespace { class FindExifdatumByKey { public: //! Constructor, initializes the object with the key to look for - FindExifdatumByKey(const std::string& key) : key_(key) {} + explicit FindExifdatumByKey(const std::string& key) : key_(key) + { + } /*! @brief Returns true if the key of \em exifdatum is equal to that of the object. diff --git a/src/xmp.cpp b/src/xmp.cpp index a9342385..81d30e0f 100644 --- a/src/xmp.cpp +++ b/src/xmp.cpp @@ -49,8 +49,9 @@ namespace { class FindXmpdatum { public: //! Constructor, initializes the object with key - FindXmpdatum(const Exiv2::XmpKey& key) - : key_(key.key()) {} + explicit FindXmpdatum(const Exiv2::XmpKey& key) : key_(key.key()) + { + } /*! @brief Returns true if prefix and property of the argument Xmpdatum are equal to that of the object.