mirror of
https://github.com/taglib/taglib.git
synced 2025-07-18 21:14:23 -04:00
Use std::wstring::empty() rather than size() == 0.
Depending on the implementation, empty() can be more efficient than size().
This commit is contained in:
@ -386,7 +386,7 @@ TagLib::uint String::length() const
|
||||
|
||||
bool String::isEmpty() const
|
||||
{
|
||||
return d->data.size() == 0;
|
||||
return d->data.empty();
|
||||
}
|
||||
|
||||
bool String::isNull() const
|
||||
|
Reference in New Issue
Block a user