⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 201515 in webkit


Ignore:
Timestamp:
May 31, 2016, 10:53:20 AM (10 years ago)
Author:
achristensen@apple.com
Message:

Build fix after r201482.

  • platform/network/curl/CurlDownload.cpp:

(WebCore::CurlDownload::didReceiveHeader):
header used to be capturedHeader, which was a StringCapture, which needed .string() to get the String.
Now it's a WTF::String, so we already have the String. Hooray for c++14!

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r201511 r201515  
     12016-05-31  Alex Christensen  <achristensen@webkit.org>
     2
     3        Build fix after r201482.
     4
     5        * platform/network/curl/CurlDownload.cpp:
     6        (WebCore::CurlDownload::didReceiveHeader):
     7        header used to be capturedHeader, which was a StringCapture, which needed .string() to get the String.
     8        Now it's a WTF::String, so we already have the String.  Hooray for c++14!
     9
    1102016-05-31  Sergio Villar Senin  <svillar@igalia.com>
    211
  • trunk/Source/WebCore/platform/network/curl/CurlDownload.cpp

    r201482 r201515  
    414414    } else {
    415415        callOnMainThread([this, header = header.isolatedCopy(), protectedThis = Ref<CurlDownload>(*this)] {
    416             int splitPos = header.string().find(":");
     416            int splitPos = header.find(":");
    417417            if (splitPos != -1)
    418                 m_response.setHTTPHeaderField(header.string().left(splitPos), header.string().substring(splitPos + 1).stripWhiteSpace());
     418                m_response.setHTTPHeaderField(header.left(splitPos), header.substring(splitPos + 1).stripWhiteSpace());
    419419        });
    420420    }
Note: See TracChangeset for help on using the changeset viewer.