Implemented a specialized version of APE::Tag::isEmpty()

git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@1148318 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
Lukáš Lalinský
2010-07-10 09:22:53 +00:00
parent ab7e997bc6
commit 49631a3013
5 changed files with 53 additions and 0 deletions

View File

@ -208,6 +208,11 @@ void APE::Tag::setItem(const String &key, const Item &item)
d->itemListMap.insert(key.upper(), item);
}
bool APE::Tag::isEmpty() const
{
return d->itemListMap.isEmpty();
}
////////////////////////////////////////////////////////////////////////////////
// protected methods
////////////////////////////////////////////////////////////////////////////////

View File

@ -137,6 +137,11 @@ namespace TagLib {
*/
void setItem(const String &key, const Item &item);
/*!
* Returns true if the tag does not contain any data.
*/
bool isEmpty() const;
protected:
/*!