]> granicus.if.org Git - taglib/commitdiff
Use std::wstring::empty() rather than size() == 0.
authorTsuda Kageyu <tsuda.kageyu@gmail.com>
Tue, 17 Nov 2015 01:49:30 +0000 (10:49 +0900)
committerTsuda Kageyu <tsuda.kageyu@gmail.com>
Tue, 17 Nov 2015 01:49:30 +0000 (10:49 +0900)
Depending on the implementation, empty() can be more efficient than size().

taglib/toolkit/tstring.cpp

index 258e1fcf54f16af34e423262c005bb3f404405b4..e21316b24dbaf89af38f43defc29fb8a6a667f25 100644 (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