From 1fbe4b7bbd68a336f8fe617235b752a8ea1a3bd5 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Tue, 29 Mar 2022 18:45:30 -0700 Subject: [PATCH] use = delete and move to public Signed-off-by: Rosen Penev --- include/exiv2/properties.hpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/include/exiv2/properties.hpp b/include/exiv2/properties.hpp index 12f6fd35..1c51c0cc 100644 --- a/include/exiv2/properties.hpp +++ b/include/exiv2/properties.hpp @@ -65,19 +65,19 @@ struct EXIV2API XmpNsInfo { //! XMP property reference, implemented as a static class. class EXIV2API XmpProperties { - //! Prevent construction: not implemented. - XmpProperties(); - //! Prevent copy-construction: not implemented. - XmpProperties(const XmpProperties& rhs); - //! Prevent assignment: not implemented. - XmpProperties& operator=(const XmpProperties& rhs); - private: static const XmpNsInfo* nsInfoUnsafe(const std::string& prefix); static void unregisterNsUnsafe(const std::string& ns); static const XmpNsInfo* lookupNsRegistryUnsafe(const XmpNsInfo::Prefix& prefix); public: + //! Prevent construction: not implemented. + XmpProperties() = delete; + //! Prevent copy-construction: not implemented. + XmpProperties(const XmpProperties&) = delete; + //! Prevent assignment: not implemented. + XmpProperties& operator=(const XmpProperties& rhs) = delete; + /*! @brief Return the title (label) of the property. @param key The property key