Replace 'foo.length() == 0' pattern with foo.empty().

This commit is contained in:
Stephen Kelly 2015-01-15 22:36:31 +01:00
parent fd7b371293
commit 86b5bdfa08
1 changed files with 1 additions and 1 deletions

View File

@ -155,7 +155,7 @@ public:
*/ */
const char* GetError() const char* GetError()
{ {
if(this->Error.length() == 0) if(this->Error.empty())
{ {
this->Error = this->GetName(); this->Error = this->GetName();
this->Error += " unknown error."; this->Error += " unknown error.";