소스 검색

Update str.cpp

Effectively copied dStrIsEmtpy() into String::isEmpty().
RichardRanft 10 년 전
부모
커밋
38413be513
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  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)
 {
-	return (dStrlen(str) == 0);
+	return src == 0 || src[0] == '\0';
 }
 
 bool String::isShared() const