diff --git a/include/exiv2/datasets.hpp b/include/exiv2/datasets.hpp index 48f50596..2c34b90f 100644 --- a/include/exiv2/datasets.hpp +++ b/include/exiv2/datasets.hpp @@ -268,17 +268,11 @@ namespace Exiv2 { IptcKey(uint16_t tag, uint16_t record); //! Copy constructor IptcKey(const IptcKey& rhs); + IptcKey& operator=(const IptcKey& rhs) = delete; //! Destructor ~IptcKey() override = default; //@} - //! @name Manipulators - //@{ - /*! - @brief Assignment operator. - */ - IptcKey& operator=(const IptcKey& rhs); - //@} //! @name Accessors //@{ diff --git a/src/datasets.cpp b/src/datasets.cpp index 53b6764c..556b0963 100644 --- a/src/datasets.cpp +++ b/src/datasets.cpp @@ -568,17 +568,6 @@ namespace Exiv2 { { } - IptcKey& IptcKey::operator=(const IptcKey& rhs) - { - if (this == &rhs) - return *this; - Key::operator=(rhs); - tag_ = rhs.tag_; - record_ = rhs.record_; - key_ = rhs.key_; - return *this; - } - std::string IptcKey::key() const { return key_;