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/kjs/StringConstructor.cpp

    r35027 r35199  
    3838        for (ArgList::const_iterator it = args.begin(); it != end; ++it)
    3939            *p++ = static_cast<UChar>((*it)->toUInt32(exec));
    40         s = UString(buf, args.size(), false);
     40        s = UString::adopt(buf, args.size());
    4141    } else
    4242        s = "";
Note: See TracChangeset for help on using the changeset viewer.