Changeset 230620 in webkit


Ignore:
Timestamp:
Apr 12, 2018 6:56:24 PM (6 years ago)
Author:
commit-queue@webkit.org
Message:

[Curl] Fix clang build error in CurlContext.cpp
https://bugs.webkit.org/show_bug.cgi?id=184561

Patch by Christopher Reid <chris.reid@sony.com> on 2018-04-12
Reviewed by Darin Adler.

MSVC allows explicit template specialization in classes but gcc/clang do not.

  • platform/network/curl/CurlContext.cpp:
Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r230619 r230620  
     12018-04-12  Christopher Reid  <chris.reid@sony.com>
     2
     3        [Curl] Fix clang build error in CurlContext.cpp
     4        https://bugs.webkit.org/show_bug.cgi?id=184561
     5
     6        Reviewed by Darin Adler.
     7
     8        MSVC allows explicit template specialization in classes but gcc/clang do not.
     9
     10        * platform/network/curl/CurlContext.cpp:
     11
    1122018-04-12  Christopher Reid  <chris.reid@sony.com>
    213
  • trunk/Source/WebCore/platform/network/curl/CurlContext.cpp

    r230303 r230620  
    6767        return nullptr;
    6868    }
    69 
    70     // define specialized member function for specific type.
    71     template<> constexpr const char* sscanTemplate<signed>() { return "%d"; }
    72     template<> constexpr const char* sscanTemplate<unsigned>() { return "%u"; }
    7369};
     70
     71template<>
     72constexpr const char* EnvironmentVariableReader::sscanTemplate<signed>() { return "%d"; }
     73
     74template<>
     75constexpr const char* EnvironmentVariableReader::sscanTemplate<unsigned>() { return "%u"; }
    7476
    7577// CurlContext -------------------------------------------------------------------
Note: See TracChangeset for help on using the changeset viewer.