From 3f968933f42506593be304641625c45a2b6f9a12 Mon Sep 17 00:00:00 2001 From: Tsuda Kageyu Date: Tue, 17 Nov 2015 10:49:30 +0900 Subject: [PATCH] Use std::wstring::empty() rather than size() == 0. Depending on the implementation, empty() can be more efficient than size(). --- taglib/toolkit/tstring.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.40.0