Changeset 30942 in webkit for trunk/JavaScriptCore/API


Ignore:
Timestamp:
Mar 10, 2008, 3:06:44 PM (17 years ago)
Author:
[email protected]
Message:

Reviewed by Darin.

Remove KJS::UChar, use ::UChar instead
http://bugs.webkit.org/show_bug.cgi?id=17017

To functional changes, thus no tests.

  • bindings/js/JSCSSStyleDeclarationCustom.cpp: (WebCore::hasCSSPropertyNamePrefix): (WebCore::cssPropertyName):
  • bindings/js/JSDOMWindowBase.cpp: (WebCore::windowProtoFuncAToB): (WebCore::windowProtoFuncBToA):
  • bindings/js/JSSVGPODTypeWrapper.h:
  • bindings/js/kjs_proxy.cpp: (WebCore::KJSProxy::evaluate):
  • bridge/objc/objc_utility.mm: (KJS::Bindings::throwError):
  • dom/Document.cpp: (WebCore::Document::parseQualifiedName):
  • platform/text/AtomicString.cpp: (WebCore::AtomicString::add):
  • platform/text/String.cpp: (WebCore::String::String): (WebCore::String::operator Identifier): (WebCore::String::operator UString):
  • platform/text/TextCodecICU.cpp: (WebCore::TextCodecICU::decode):
  • svg/SVGAnimatedTemplate.h:
Location:
trunk/JavaScriptCore/API
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/JSStringRef.cpp

    r29663 r30942  
    4545{
    4646    JSLock lock;
    47     return toRef(UString(reinterpret_cast<const KJS::UChar*>(chars), static_cast<int>(numChars)).rep()->ref());
     47    return toRef(UString(chars, static_cast<int>(numChars)).rep()->ref());
    4848}
    4949
     
    5353
    5454    size_t length = strlen(string);
    55     Vector< ::UChar, 1024> buffer(length);
    56     ::UChar* p = buffer.data();
     55    Vector<UChar, 1024> buffer(length);
     56    UChar* p = buffer.data();
    5757    if (conversionOK != convertUTF8ToUTF16(&string, string + length, &p, p + length))
    5858        return 0;
    5959
    60     return toRef(UString(reinterpret_cast<KJS::UChar*>(buffer.data()), p - buffer.data()).rep()->ref());
     60    return toRef(UString(buffer.data(), p - buffer.data()).rep()->ref());
    6161}
    6262
  • trunk/JavaScriptCore/API/JSStringRefCF.cpp

    r29663 r30942  
    4646        UniChar* buffer = static_cast<UniChar*>(fastMalloc(sizeof(UniChar) * length));
    4747        CFStringGetCharacters(string, CFRangeMake(0, length), buffer);
    48         rep = UString(reinterpret_cast<UChar*>(buffer), length, false).rep()->ref();
     48        rep = UString(buffer, length, false).rep()->ref();
    4949    }
    5050    return toRef(rep);
Note: See TracChangeset for help on using the changeset viewer.