mirror of
https://github.com/Kitware/CMake.git
synced 2025-12-31 19:00:54 -06:00
cmCTestCurl: Use inline member initialization
This commit is contained in:
@@ -13,17 +13,11 @@
|
||||
#include "cmSystemTools.h"
|
||||
|
||||
cmCTestCurl::cmCTestCurl(cmCTest* ctest)
|
||||
: CTest(ctest)
|
||||
{
|
||||
this->CTest = ctest;
|
||||
this->SetProxyType();
|
||||
this->UseHttp10 = false;
|
||||
// In windows, this will init the winsock stuff
|
||||
::curl_global_init(CURL_GLOBAL_ALL);
|
||||
// default is to verify https
|
||||
this->VerifyPeerOff = false;
|
||||
this->VerifyHostOff = false;
|
||||
this->Quiet = false;
|
||||
this->TimeOutSeconds = 0;
|
||||
this->Curl = curl_easy_init();
|
||||
}
|
||||
|
||||
|
||||
@@ -40,14 +40,14 @@ protected:
|
||||
|
||||
private:
|
||||
cmCTest* CTest;
|
||||
CURL* Curl;
|
||||
CURL* Curl = nullptr;
|
||||
std::vector<std::string> HttpHeaders;
|
||||
std::string HTTPProxyAuth;
|
||||
std::string HTTPProxy;
|
||||
curl_proxytype HTTPProxyType;
|
||||
bool VerifyHostOff;
|
||||
bool VerifyPeerOff;
|
||||
bool UseHttp10;
|
||||
bool Quiet;
|
||||
int TimeOutSeconds;
|
||||
bool VerifyHostOff = false;
|
||||
bool VerifyPeerOff = false;
|
||||
bool UseHttp10 = false;
|
||||
bool Quiet = false;
|
||||
int TimeOutSeconds = 0;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user