From 4f3844114abba69b8e03c9f914846a699619bec4 Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Wed, 18 Nov 2015 10:29:25 +0900 Subject: [PATCH] Mark some variables and functions deprecated. ByteVector::null, ByteVector::isNull(), String::null, String::isNull() have got marked deprecated. It's dangerous to use them, and they will be removed in taglib2. --- taglib/toolkit/tbytevector.h | 6 ++++++ taglib/toolkit/tstring.h | 6 ++++++ 2 files changed, 12 insertions(+) diff --git a/taglib/toolkit/tbytevector.h b/taglib/toolkit/tbytevector.h index 98b5d8b5..00b833f5 100644 --- a/taglib/toolkit/tbytevector.h +++ b/taglib/toolkit/tbytevector.h @@ -265,7 +265,10 @@ namespace TagLib { * method to check if the vector is empty. * * \see isEmpty() + * + * \deprecated */ + // BIC: remove bool isNull() const; /*! @@ -570,7 +573,10 @@ namespace TagLib { * * \warning Do not modify this variable. It will mess up the internal state * of TagLib. + * + * \deprecated */ + // BIC: remove static ByteVector null; /*! diff --git a/taglib/toolkit/tstring.h b/taglib/toolkit/tstring.h index a2ee19ff..2263e5e4 100644 --- a/taglib/toolkit/tstring.h +++ b/taglib/toolkit/tstring.h @@ -336,7 +336,10 @@ namespace TagLib { * check if the string is empty. * * \see isEmpty() + * + * \deprecated */ + // BIC: remove bool isNull() const; /*! @@ -513,7 +516,10 @@ namespace TagLib { * * \warning Do not modify this variable. It will mess up the internal state * of TagLib. + * + * \deprecated */ + // BIC: remove static String null; protected: