Skip to content

Commit

Permalink
properly mark functions as deprecated
Browse files Browse the repository at this point in the history
Signed-off-by: Rosen Penev <[email protected]>
  • Loading branch information
neheb committed Aug 9, 2023
1 parent 853044f commit 5ddcd71
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
4 changes: 2 additions & 2 deletions include/exiv2/image.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down
5 changes: 3 additions & 2 deletions include/exiv2/iptc.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5ddcd71

Please sign in to comment.