File tree Expand file tree Collapse file tree 5 files changed +6
-12
lines changed Expand file tree Collapse file tree 5 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -61,14 +61,11 @@ function(get_libcurl)
6161 string (APPEND CMAKE_C_FLAGS " /wd6101" )
6262 string (APPEND CMAKE_C_FLAGS " /wd6011" )
6363 string (APPEND CMAKE_C_FLAGS " /wd6054" )
64- #string(APPEND CMAKE_C_FLAGS " /wd6240")
65- #string(APPEND CMAKE_C_FLAGS " /wd6239")
6664 string (APPEND CMAKE_C_FLAGS " /wd6287" )
6765 string (APPEND CMAKE_C_FLAGS " /wd6323" )
6866 string (APPEND CMAKE_C_FLAGS " /wd6385" )
6967 string (APPEND CMAKE_C_FLAGS " /wd6387" )
7068 string (APPEND CMAKE_C_FLAGS " /wd28182" )
71- #string(APPEND CMAKE_C_FLAGS " /wd28183")
7269 string (APPEND CMAKE_C_FLAGS " /wd28251" )
7370 string (APPEND CMAKE_C_FLAGS " /wd28301" )
7471 else ()
Original file line number Diff line number Diff line change @@ -52,7 +52,7 @@ namespace vcpkg
5252
5353 struct CurlHeaders
5454 {
55- CurlHeaders ();
55+ CurlHeaders () = default ;
5656 CurlHeaders (View<std::string> headers);
5757 CurlHeaders (CurlHeaders&& other) noexcept ;
5858 CurlHeaders& operator =(CurlHeaders&& other) noexcept ;
Original file line number Diff line number Diff line change @@ -199,7 +199,5 @@ namespace vcpkg
199199
200200 void flush_global_metrics (const Filesystem&);
201201 bool curl_upload_metrics (const std::string& payload);
202-
203- // exposed for testing
204202 bool parse_metrics_response (StringView response_body);
205203}
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ namespace vcpkg
2828 return g_curl_global_init.get_init_status ();
2929 }
3030
31- CurlEasyHandle::CurlEasyHandle () : m_ptr( nullptr ) { vcpkg:: get_curl_global_init_status (); }
31+ CurlEasyHandle::CurlEasyHandle () { get_curl_global_init_status (); }
3232 CurlEasyHandle::CurlEasyHandle (CurlEasyHandle&& other) noexcept : m_ptr(std::exchange(other.m_ptr, nullptr )) { }
3333 CurlEasyHandle& CurlEasyHandle::operator =(CurlEasyHandle&& other) noexcept
3434 {
@@ -55,7 +55,7 @@ namespace vcpkg
5555 return m_ptr;
5656 }
5757
58- CurlMultiHandle::CurlMultiHandle () : m_ptr( nullptr ) { vcpkg:: get_curl_global_init_status (); }
58+ CurlMultiHandle::CurlMultiHandle () { get_curl_global_init_status (); }
5959 CurlMultiHandle::CurlMultiHandle (CurlMultiHandle&& other) noexcept
6060 : m_ptr(std::exchange(other.m_ptr, nullptr )), m_easy_handles(std::move(other.m_easy_handles))
6161 {
@@ -99,7 +99,6 @@ namespace vcpkg
9999 return m_ptr;
100100 }
101101
102- CurlHeaders::CurlHeaders () : m_headers(nullptr ) { }
103102 CurlHeaders::CurlHeaders (View<std::string> headers) : m_headers(nullptr )
104103 {
105104 for (const auto & header : headers)
Original file line number Diff line number Diff line change @@ -548,9 +548,9 @@ namespace vcpkg
548548 auto json = maybe_json.get ();
549549 if (!json) return false ;
550550
551- auto maybe_received = json->get (vcpkg:: AppInsightsResponseItemsReceived);
552- auto maybe_accepted = json->get (vcpkg:: AppInsightsResponseItemsAccepted);
553- auto maybe_errors = json->get (vcpkg:: AppInsightsResponseErrors);
551+ auto maybe_received = json->get (AppInsightsResponseItemsReceived);
552+ auto maybe_accepted = json->get (AppInsightsResponseItemsAccepted);
553+ auto maybe_errors = json->get (AppInsightsResponseErrors);
554554
555555 if (maybe_received && maybe_accepted && maybe_errors && maybe_received->is_integer () &&
556556 maybe_accepted->is_integer () && maybe_errors->is_array ())
You can’t perform that action at this time.
0 commit comments