diff options
author | Brad King <brad.king@kitware.com> | 2024-02-29 19:41:01 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2024-03-12 14:43:37 (GMT) |
commit | cf4253ed6095e818b89ff04ffe684e93d01bc4a5 (patch) | |
tree | 3bd823dab88f3382fa8f44db9dd82ca7d0d3bee3 /Source/cmCurl.h | |
parent | 9e5b954adb0f5f29f12b4e581cda228e6c436239 (diff) | |
download | CMake-cf4253ed6095e818b89ff04ffe684e93d01bc4a5.zip CMake-cf4253ed6095e818b89ff04ffe684e93d01bc4a5.tar.gz CMake-cf4253ed6095e818b89ff04ffe684e93d01bc4a5.tar.bz2 |
cmCurl: Improve signature of cmCurlParseTLSVersion
Avoid requiring caller to allocate a string.
Diffstat (limited to 'Source/cmCurl.h')
-rw-r--r-- | Source/cmCurl.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/cmCurl.h b/Source/cmCurl.h index b895a30..9675e08 100644 --- a/Source/cmCurl.h +++ b/Source/cmCurl.h @@ -7,10 +7,11 @@ #include <string> #include <cm/optional> +#include <cm/string_view> #include <cm3p/curl/curl.h> -cm::optional<int> cmCurlParseTLSVersion(std::string const& tls_version); +cm::optional<int> cmCurlParseTLSVersion(cm::string_view tls_version); std::string cmCurlSetCAInfo(::CURL* curl, const std::string& cafile = {}); std::string cmCurlSetNETRCOption(::CURL* curl, const std::string& netrc_level, const std::string& netrc_file); |