Changeset 157176 in webkit


Ignore:
Timestamp:
Oct 9, 2013 11:22:08 AM (11 years ago)
Author:
msaboff@apple.com
Message:

Change to std::unique_ptr breaks wtf/DataLog.cpp when DATA_LOG_TO_FILE set to 1
https://bugs.webkit.org/show_bug.cgi?id=122557

Reviewed by Filip Pizlo.

Changed the leakPtr() to release().

  • wtf/DataLog.cpp:

(WTF::initializeLogFileOnce):

Location:
trunk/Source/WTF
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WTF/ChangeLog

    r157143 r157176  
     12013-10-09  Michael Saboff  <msaboff@apple.com>
     2
     3        Change to std::unique_ptr breaks wtf/DataLog.cpp when DATA_LOG_TO_FILE set to 1
     4        https://bugs.webkit.org/show_bug.cgi?id=122557
     5
     6        Reviewed by Filip Pizlo.
     7
     8        Changed the leakPtr() to release().
     9
     10        * wtf/DataLog.cpp:
     11        (WTF::initializeLogFileOnce):
     12
    1132013-10-08  Tim Horton  <timothy_horton@apple.com>
    214
  • trunk/Source/WTF/wtf/DataLog.cpp

    r153189 r157176  
    7676
    7777    if (filename) {
    78         file = FilePrintStream::open(actualFilename, "w").leakPtr();
     78        file = FilePrintStream::open(actualFilename, "w").release();
    7979        if (!file)
    8080            fprintf(stderr, "Warning: Could not open log file %s for writing.\n", actualFilename);
Note: See TracChangeset for help on using the changeset viewer.