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:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kjs/identifier.cpp

    r27176 r30942  
    6868    const UChar *d = r->data();
    6969    for (int i = 0; i != length; ++i)
    70         if (d[i].uc != (unsigned char)s[i])
     70        if (d[i] != (unsigned char)s[i])
    7171            return false;
    7272    return s[length] == 0;
     
    7979    const UChar *d = r->data();
    8080    for (int i = 0; i != length; ++i)
    81         if (d[i].uc != s[i].uc)
     81        if (d[i] != s[i])
    8282            return false;
    8383    return true;
     
    9292    const UChar *s = b->data();
    9393    for (int i = 0; i != length; ++i)
    94         if (d[i].uc != s[i].uc)
     94        if (d[i] != s[i])
    9595            return false;
    9696    return true;
     
    114114        UChar *d = static_cast<UChar *>(fastMalloc(sizeof(UChar) * length));
    115115        for (size_t i = 0; i != length; i++)
    116             d[i] = c[i];
     116            d[i] = static_cast<unsigned char>(c[i]); // use unsigned char to zero-extend instead of sign-extend
    117117       
    118118        UString::Rep *r = UString::Rep::create(d, static_cast<int>(length)).releaseRef();
Note: See TracChangeset for help on using the changeset viewer.