Update str.cpp

Effectively copied dStrIsEmtpy() into String::isEmpty().
This commit is contained in:
RichardRanft 2015-05-24 22:43:27 -07:00
parent 3ddd9b8a4c
commit 38413be513

View file

@ -659,7 +659,7 @@ bool String::isEmpty() const
bool String::isEmpty(const char* str)
{
return (dStrlen(str) == 0);
return src == 0 || src[0] == '\0';
}
bool String::isShared() const