From 5ddcd7103c44f2d4cdbe587dbaee63737f625780 Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Mon, 7 Aug 2023 20:31:57 -0700 Subject: [PATCH] properly mark functions as deprecated Signed-off-by: Rosen Penev --- include/exiv2/image.hpp | 4 ++-- include/exiv2/iptc.hpp | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/include/exiv2/image.hpp b/include/exiv2/image.hpp index 629a8a4fd6..339ea37e46 100644 --- a/include/exiv2/image.hpp +++ b/include/exiv2/image.hpp @@ -430,9 +430,9 @@ class EXIV2API Image { [[nodiscard]] AccessMode checkMode(MetadataId metadataId) const; /*! @brief Check if image supports a particular type of metadata. - This method is deprecated. Use checkMode() instead. + @deprecated This method is deprecated. Use checkMode() instead. */ - [[nodiscard]] bool supportsMetadata(MetadataId metadataId) const; + [[deprecated]] [[nodiscard]] bool supportsMetadata(MetadataId metadataId) const; //! Return the flag indicating the source when writing XMP metadata. [[nodiscard]] bool writeXmpFromPacket() const; //! Return list of native previews. This is meant to be used only by the PreviewManager. diff --git a/include/exiv2/iptc.hpp b/include/exiv2/iptc.hpp index 9c80f39a76..1087dbc8bd 100644 --- a/include/exiv2/iptc.hpp +++ b/include/exiv2/iptc.hpp @@ -96,10 +96,11 @@ class EXIV2API Iptcdatum : public Metadatum { */ [[nodiscard]] std::string key() const override; /*! - @brief Return the name of the record (deprecated) + @brief Return the name of the record @return record name + @deprecated This function is deprecated. */ - [[nodiscard]] std::string recordName() const; + [[deprecated]] [[nodiscard]] std::string recordName() const; /*! @brief Return the record id @return record id