Ignore:
Timestamp:
Feb 21, 2010, 10:50:44 PM (15 years ago)
Author:
[email protected]
Message:

JavaScriptCore: Make UString::m_data be const, and make the UChar owned/ref-counted by CrossThreadRefCounted be const too.

Reviewed by Oliver Hunt.

  • runtime/UStringImpl.cpp:

(JSC::UStringImpl::baseSharedBuffer):
(JSC::UStringImpl::~UStringImpl):

  • runtime/UStringImpl.h:

(JSC::UStringImpl::create):
(JSC::UStringImpl::data):
(JSC::UStringImpl::UStringImpl):

  • wtf/OwnFastMallocPtr.h:

(WTF::OwnFastMallocPtr::~OwnFastMallocPtr):

WebCore: Make the UChar owned/ref-counted by StringImpl::CrossThreadRefCounted be const.

Reviewed by Oliver Hunt.

  • platform/text/StringImpl.cpp:

(WebCore::StringImpl::sharedBuffer):

  • platform/text/StringImpl.h:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/wtf/OwnFastMallocPtr.h

    r45891 r55069  
    3636        ~OwnFastMallocPtr()
    3737        {
    38             fastFree(m_ptr);
     38            fastFree(const_cast<void*>(static_cast<const void*>(const_cast<const T*>(m_ptr))));
    3939        }
    4040
Note: See TracChangeset for help on using the changeset viewer.