Reduce useless detach operations by making some non-const iterators const.

This commit is contained in:
Tsuda Kageyu
2014-08-21 16:35:35 +09:00
parent d5e3d6ea7c
commit 2971891c69
16 changed files with 38 additions and 38 deletions

View File

@ -233,7 +233,7 @@ void taglib_tag_free_strings()
if(!stringManagementEnabled)
return;
for(List<char *>::Iterator it = strings.begin(); it != strings.end(); ++it)
for(List<char *>::ConstIterator it = strings.begin(); it != strings.end(); ++it)
free(*it);
strings.clear();
}