mirror of
https://github.com/taglib/taglib.git
synced 2025-07-21 14:34:23 -04:00
Use List::isEmpty() rather than size() to check if the list is empty.
std::list::empty() is guaranteed to be an O(1) operation.
This commit is contained in:
@ -635,7 +635,7 @@ void XM::File::read(bool)
|
||||
|
||||
d->properties.setSampleCount(sumSampleCount);
|
||||
String comment(intrumentNames.toString("\n"));
|
||||
if(sampleNames.size() > 0) {
|
||||
if(!sampleNames.isEmpty()) {
|
||||
comment += "\n";
|
||||
comment += sampleNames.toString("\n");
|
||||
}
|
||||
|
Reference in New Issue
Block a user