/***************************************************************************
- copyright : (C) 2002 - 2008 by Scott Wheeler
+ copyright : (C) 2012 by Tsuda Kageyu
email : wheeler@kde.org
***************************************************************************/
static const StringHandler defaultStringHandler;
const RIFF::Info::StringHandler *RIFF::Info::Tag::TagPrivate::stringHandler = &defaultStringHandler;
-RIFF::Info::Tag::Tag(const ByteVector &data) : TagLib::Tag()
+RIFF::Info::Tag::Tag(const ByteVector &data)
+ : TagLib::Tag()
+ , d(new TagPrivate())
{
- d = new TagPrivate;
parse(data);
}
-RIFF::Info::Tag::Tag() : TagLib::Tag()
+RIFF::Info::Tag::Tag()
+ : TagLib::Tag()
+ , d(new TagPrivate())
{
- d = new TagPrivate;
}
RIFF::Info::Tag::~Tag()
{
+ delete d;
}
String RIFF::Info::Tag::title() const
virtual void setTrack(uint i);
virtual bool isEmpty() const;
+
/*
* Gets the value of the field with the ID \a id.
*/
* If the field does not exist, it is created.
* If \s is empty, the field is removed.
*
- * \note fieldId must be four-byte long pure ascii string. This function
+ * \note fieldId must be four-byte long pure ASCII string. This function
* performs nothing if fieldId is invalid.
*/
void setFieldText(const ByteVector &id, const String &s);