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/nodes2string.cpp

    r30871 r30942  
    7979
    8080    for (int i = 0; i < s.size(); i++) {
    81         unsigned short c = s.data()[i].unicode();
     81        unsigned short c = s.data()[i];
    8282        switch (c) {
    8383            case '\"':
     
    160160    m_numberNeedsParens = false;
    161161    m_atStartOfStatement = false;
    162     UChar ch(c);
     162    // use unsigned char to zero-extend instead of sign-extend
     163    UChar ch(static_cast<unsigned char>(c));
    163164    m_string.append(ch);
    164165    return *this;
Note: See TracChangeset for help on using the changeset viewer.