Replace 'foo.length() == 0' pattern with foo.empty().
This commit is contained in:
parent
fd7b371293
commit
86b5bdfa08
|
@ -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.";
|
||||||
|
|
Loading…
Reference in New Issue