Bläddra i källkod

Update str.cpp

Effectively copied dStrIsEmtpy() into String::isEmpty().
RichardRanft 10 år sedan
förälder
incheckning
38413be513
1 ändrade filer med 1 tillägg och 1 borttagningar
  1. 1 1
      Engine/source/core/util/str.cpp

+ 1 - 1
Engine/source/core/util/str.cpp

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