* platform/String.cpp:
(WebCore::string): Added a debugging function to create a String from a
const char*.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@15712
268f45cc-cd09-0410-ab3c-
d52691b4dbfc
+2006-07-31 Geoffrey Garen <ggaren@apple.com>
+
+ Reviewed by Darin.
+
+ * platform/String.cpp:
+ (WebCore::string): Added a debugging function to create a String from a
+ const char*.
+
2006-07-31 Anders Carlsson <acarlsson@apple.com>
* css/CSSPrimitiveValue.cpp:
return UString(reinterpret_cast<const KJS::UChar*>(m_impl->characters()), m_impl->length());
}
+#ifndef NDEBUG
+// For debugging only -- leaks memory
+String* string(const char* s)
+{
+ return new String(s);
}
+#endif
+
+} // namespace WebCore