mirror of
https://github.com/taglib/taglib.git
synced 2025-06-03 09:08:09 -04:00
Style and safety fixes backported from taglib-extras
git-svn-id: svn://anonsvn.kde.org/home/kde/trunk/kdesupport/taglib@961000 283d02a7-25f6-0310-bc7c-ecb5cbfe19da
This commit is contained in:
parent
40bdaedb71
commit
f1a16bcf0f
@ -79,6 +79,11 @@ MP4::Tag::Tag(File *file, MP4::Atoms *atoms)
|
||||
}
|
||||
}
|
||||
|
||||
MP4::Tag::~Tag()
|
||||
{
|
||||
delete d;
|
||||
}
|
||||
|
||||
ByteVectorList
|
||||
MP4::Tag::parseData(MP4::Atom *atom, TagLib::File *file, int expectedFlags, bool freeForm)
|
||||
{
|
||||
@ -167,7 +172,7 @@ MP4::Tag::parseFreeForm(MP4::Atom *atom, TagLib::File *file)
|
||||
for(unsigned int i = 2; i < data.size(); i++) {
|
||||
value.append(String(data[i], String::UTF8));
|
||||
}
|
||||
String name = "----:" + data[0] + ":" + data[1];
|
||||
String name = "----:" + data[0] + ':' + data[1];
|
||||
d->items.insert(name, value);
|
||||
}
|
||||
}
|
||||
|
@ -45,6 +45,7 @@ namespace TagLib {
|
||||
{
|
||||
public:
|
||||
Tag(TagLib::File *file, Atoms *atoms);
|
||||
~Tag();
|
||||
bool save();
|
||||
|
||||
String title() const;
|
||||
|
Loading…
x
Reference in New Issue
Block a user