Use std::wstring::empty() rather than size() == 0.

Depending on the implementation, empty() can be more efficient than size().
This commit is contained in:
Tsuda Kageyu 2015-11-17 10:49:30 +09:00
parent 67f44071cd
commit 3f968933f4

View File

@ -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