Ignore:
Timestamp:
Jul 16, 2008, 1:19:56 PM (17 years ago)
Author:
[email protected]
Message:

2008-07-16 Sam Weinig <[email protected]>

Reviewed by Steve Falkenburg.

Replace adopting UString constructor in favor of explicit
static adopt method.

  • API/JSStringRefCF.cpp: (JSStringCreateWithCFString):
  • kjs/StringConstructor.cpp: (KJS::stringFromCharCode):
  • kjs/StringPrototype.cpp: (KJS::stringProtoFuncToLowerCase): (KJS::stringProtoFuncToUpperCase): (KJS::stringProtoFuncToLocaleLowerCase): (KJS::stringProtoFuncToLocaleUpperCase):
  • kjs/ustring.cpp: (KJS::UString::adopt):
  • kjs/ustring.h: (KJS::UString::UString): (KJS::UString::~UString):
File:
1 edited

Legend:

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

    r35159 r35199  
    4545        CFStringGetCharacters(string, CFRangeMake(0, length), buffer);
    4646        COMPILE_ASSERT(sizeof(UniChar) == sizeof(UChar), unichar_and_uchar_must_be_same_size);
    47         rep = UString(reinterpret_cast<UChar*>(buffer), length, false).rep()->ref();
     47        rep = UString::adopt(reinterpret_cast<UChar*>(buffer), length).rep()->ref();
    4848    }
    4949    return toRef(rep);
Note: See TracChangeset for help on using the changeset viewer.