From: Tsuda Kageyu Date: Tue, 17 Nov 2015 01:49:30 +0000 (+0900) Subject: Use std::wstring::empty() rather than size() == 0. X-Git-Tag: v1.11beta~148 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f968933f42506593be304641625c45a2b6f9a12;p=taglib Use std::wstring::empty() rather than size() == 0. Depending on the implementation, empty() can be more efficient than size(). --- diff --git a/taglib/toolkit/tstring.cpp b/taglib/toolkit/tstring.cpp index 258e1fcf..e21316b2 100644 --- a/taglib/toolkit/tstring.cpp +++ b/taglib/toolkit/tstring.cpp @@ -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