[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdelibs/kjs
From:       Harri Porten <porten () kde ! org>
Date:       2005-04-18 9:55:34
Message-ID: 20050418095534.AE839625 () office ! kde ! org
[Download RAW message or body]

CVS commit by porten: 

there shouldn't be such a thing as a null KJS::String()


  M +5 -1      value.cpp   1.36


--- kdelibs/kjs/value.cpp  #1.35:1.36
@@ -333,4 +333,8 @@ Boolean Boolean::dynamicCast(const Value
 String::String(const UString &s) : Value(new StringImp(UString(s)))
 {
+#ifndef NDEBUG
+  if (s.isNull())
+    fprintf(stderr, "WARNING: KJS::String constructed from null string\n");
+#endif
 }
 


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic