From: Mikko Rasa Date: Mon, 3 Jun 2019 11:54:16 +0000 (+0300) Subject: Annotate deprecated identifiers as such X-Git-Url: http://git.tdb.fi/?p=libs%2Fdatafile.git;a=commitdiff_plain;h=a8a205c6a1780780ed7724cf1e401d94b23c898d Annotate deprecated identifiers as such --- diff --git a/source/collection.h b/source/collection.h index 39e6f43..bc84d62 100644 --- a/source/collection.h +++ b/source/collection.h @@ -1,6 +1,7 @@ #ifndef MSP_DATAFILE_COLLECTION_H_ #define MSP_DATAFILE_COLLECTION_H_ +#include #include #include #include "collectionsource.h" @@ -260,7 +261,8 @@ public: IO::Seekable *open_raw(const std::string &) const; protected: - IO::Seekable *open_from_sources(const std::string &n) { return open_raw(n); } + // Deprecated. Use open_raw instead. + DEPRECATED IO::Seekable *open_from_sources(const std::string &n) { return open_raw(n); } private: void gather_names_from_sources(std::list &, const CollectionItemTypeBase &) const; diff --git a/source/value.h b/source/value.h index e2b9fb1..b7da1d7 100644 --- a/source/value.h +++ b/source/value.h @@ -2,6 +2,7 @@ #define MSP_DATAFILE_VALUE_H_ #include +#include #include #include #include "type.h" @@ -34,7 +35,7 @@ private: T get_() const; }; -typedef std::vector ValueArray __attribute__((deprecated)); +typedef DEPRECATED std::vector ValueArray; template inline T Value::get_() const