mirror of
https://github.com/taglib/taglib.git
synced 2025-05-27 21:20:26 -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:
parent
67f44071cd
commit
3f968933f4
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user