Browse Source

null check is done in hxString.h already

Nicolas Cannasse 14 years ago
parent
commit
7e011d9399
1 changed files with 1 additions and 1 deletions
  1. 1 1
      std/StringTools.hx

+ 1 - 1
std/StringTools.hx

@@ -254,7 +254,7 @@ class StringTools {
 		#if neko
 		return untyped __dollar__sget(s.__s, index);
 		#elseif cpp
-		return (s == null) ? 0 : s.cca(index);
+		return s.cca(index);
 		#elseif flash9
 		return s.cca(index);
 		#elseif flash