Ignore:
Timestamp:
Nov 4, 2010, 6:16:27 PM (15 years ago)
Author:
[email protected]
Message:

2010-11-04 Xan Lopez <[email protected]>

Reviewed by Adam Barth.

Use leakRef instead of releaseRef
https://bugs.webkit.org/show_bug.cgi?id=48974

Use leakRef instead of the deprecated releaseRef. This was renamed
some time ago because 'releaseRef' is too close to 'release',
which does something completely different.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/runtime/Identifier.cpp

    r65588 r71375  
    102102        size_t length = strlen(c);
    103103        UChar* d;
    104         StringImpl* r = StringImpl::createUninitialized(length, d).releaseRef();
     104        StringImpl* r = StringImpl::createUninitialized(length, d).leakRef();
    105105        for (size_t i = 0; i != length; i++)
    106106            d[i] = static_cast<unsigned char>(c[i]); // use unsigned char to zero-extend instead of sign-extend
     
    161161    {
    162162        UChar* d;
    163         StringImpl* r = StringImpl::createUninitialized(buf.length, d).releaseRef();
     163        StringImpl* r = StringImpl::createUninitialized(buf.length, d).leakRef();
    164164        for (unsigned i = 0; i != buf.length; i++)
    165165            d[i] = buf.s[i];
Note: See TracChangeset for help on using the changeset viewer.