Implemented the most easy comments on the pull request.

This commit is contained in:
Michael Helmling
2012-01-14 22:02:17 +01:00
parent ea41cd8903
commit 67d896e6a7
4 changed files with 15 additions and 12 deletions

View File

@ -187,15 +187,17 @@ TagDict APE::Tag::toDict() const
tagName = "TRACKNUMBER";
else if (tagName == "YEAR")
tagName = "DATE";
else if (tagName == "ALBUM ARTIST")
tagName = "ALBUMARTIST";
if (it->second.type() == Item::Text)
dict[tagName].append(it->second.toStringList());
}
return dict;
}
void APE::Tag::fromDict(const TagDict &orig_dict)
void APE::Tag::fromDict(const TagDict &origDict)
{
TagDict dict(orig_dict); // make a local copy that can be modified
TagDict dict(origDict); // make a local copy that can be modified
// see comment in toDict() about TRACKNUMBER and YEAR
if (dict.contains("TRACKNUMBER")) {