Ignore:
Timestamp:
Dec 6, 2005, 1:21:15 AM (19 years ago)
Author:
mjs
Message:

JavaScriptCore:

Reviewed by Eric.

  • add PassRefPtr, a smart pointer class that works in conjunction with RefPtr but has transfer-of-ownership semantics
  • apply RefPtr and PassRefPtr to UString
  • cleaned up UString a little so that it doesn't need to have so many friend classes
  • JavaScriptCore.xcodeproj/project.pbxproj:
  • kjs/identifier.cpp: (KJS::Identifier::add):
  • kjs/identifier.h: (KJS::Identifier::Identifier): (KJS::Identifier::equal):
  • kjs/property_map.cpp: (KJS::PropertyMap::get): (KJS::PropertyMap::getLocation): (KJS::PropertyMap::put): (KJS::PropertyMap::remove):
  • kjs/ustring.cpp: (KJS::UCharReference::operator=): (KJS::UCharReference::ref): (KJS::UString::Rep::createCopying): (KJS::UString::Rep::create): (KJS::UString::usedCapacity): (KJS::UString::usedPreCapacity): (KJS::UString::expandCapacity): (KJS::UString::expandPreCapacity): (KJS::UString::UString): (KJS::UString::spliceSubstringsWithSeparators): (KJS::UString::append): (KJS::UString::operator=): (KJS::UString::toStrictUInt32): (KJS::UString::substr): (KJS::UString::copyForWriting): (KJS::operator==):
  • kjs/ustring.h: (KJS::UString::UString): (KJS::UString::~UString): (KJS::UString::data): (KJS::UString::isNull): (KJS::UString::isEmpty): (KJS::UString::size): (KJS::UString::rep):
  • kxmlcore/RefPtr.h: (KXMLCore::RefPtr::RefPtr): (KXMLCore::RefPtr::operator*): (KXMLCore::::operator): (KXMLCore::operator==): (KXMLCore::operator!=): (KXMLCore::static_pointer_cast): (KXMLCore::const_pointer_cast):

WebCore:

Reviewed by Eric.

  • add PassRefPtr, a smart pointer class that works in conjunction with RefPtr but has transfer-of-ownership semantics
  • apply RefPtr and PassRefPtr to UString
  • khtml/ecma/kjs_binding.cpp: (KJS::UString::UString):
File:
1 edited

Legend:

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

    r10857 r11472  
    158158    assert(!name.isNull());
    159159   
    160     UString::Rep *rep = name._ustring.rep;
     160    UString::Rep *rep = name._ustring.rep();
    161161   
    162162    if (!_table) {
     
    199199    assert(!name.isNull());
    200200   
    201     UString::Rep *rep = name._ustring.rep;
     201    UString::Rep *rep = name._ustring.rep();
    202202
    203203    if (!_table) {
     
    236236    assert(!name.isNull());
    237237   
    238     UString::Rep *rep = name._ustring.rep;
     238    UString::Rep *rep = name._ustring.rep();
    239239
    240240    if (!_table) {
     
    296296    checkConsistency();
    297297
    298     UString::Rep *rep = name._ustring.rep;
     298    UString::Rep *rep = name._ustring.rep();
    299299   
    300300#if DEBUG_PROPERTIES
     
    471471    checkConsistency();
    472472
    473     UString::Rep *rep = name._ustring.rep;
     473    UString::Rep *rep = name._ustring.rep();
    474474
    475475    UString::Rep *key;
Note: See TracChangeset for help on using the changeset viewer.