mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
Reduce useless detach operations by making some non-const iterators const.
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user