]> git.saurik.com Git - apple/javascriptcore.git/blobdiff - wtf/qt/StringQt.cpp
JavaScriptCore-903.tar.gz
[apple/javascriptcore.git] / wtf / qt / StringQt.cpp
index b2c621ac3be48511a2b30a2e9d33da4ec2abdb29..16dd439e3bcf1b85a66bb1d509722545063668dc 100644 (file)
 
 #include "config.h"
 
+#include <wtf/StdLibExtras.h>
 #include <wtf/text/WTFString.h>
 
 #include <QString>
 
-namespace WebCore {
+namespace WTF {
 
 // String conversions
 String::String(const QString& qstr)
 {
     if (qstr.isNull())
         return;
-    m_impl = StringImpl::create(reinterpret_cast<const UChar*>(qstr.constData()), qstr.length());
+    m_impl = StringImpl::create(reinterpret_cast_ptr<const UChar*>(qstr.constData()), qstr.length());
 }
 
 String::String(const QStringRef& ref)
 {
     if (!ref.string())
         return;
-    m_impl = StringImpl::create(reinterpret_cast<const UChar*>(ref.unicode()), ref.length());
+    m_impl = StringImpl::create(reinterpret_cast_ptr<const UChar*>(ref.unicode()), ref.length());
 }
 
 String::operator QString() const