aboutsummaryrefslogtreecommitdiff
path: root/src/networkfilemanager.cpp
diff options
context:
space:
mode:
authorEven Rouault <even.rouault@spatialys.com>2020-08-19 16:31:27 +0200
committerEven Rouault <even.rouault@spatialys.com>2020-08-19 16:31:27 +0200
commit2b3475c853b37b1485e92ef8cf78b02fb0db6142 (patch)
treed2f24a0c787de856ceb3eede89e64c5441412c01 /src/networkfilemanager.cpp
parent846455f9585a7a44af5fb6d019fc76c5612c9d84 (diff)
downloadPROJ-2b3475c853b37b1485e92ef8cf78b02fb0db6142.tar.gz
PROJ-2b3475c853b37b1485e92ef8cf78b02fb0db6142.zip
Code reformatting
Diffstat (limited to 'src/networkfilemanager.cpp')
-rw-r--r--src/networkfilemanager.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/networkfilemanager.cpp b/src/networkfilemanager.cpp
index 7587bb72..f6521ed2 100644
--- a/src/networkfilemanager.cpp
+++ b/src/networkfilemanager.cpp
@@ -1522,7 +1522,8 @@ struct CurlFileHandle {
CurlFileHandle(const CurlFileHandle &) = delete;
CurlFileHandle &operator=(const CurlFileHandle &) = delete;
- explicit CurlFileHandle(const char *url, CURL *handle, const char *ca_bundle_path);
+ explicit CurlFileHandle(const char *url, CURL *handle,
+ const char *ca_bundle_path);
~CurlFileHandle();
static PROJ_NETWORK_HANDLE *
@@ -1594,7 +1595,8 @@ static std::string GetExecutableName() {
// ---------------------------------------------------------------------------
-CurlFileHandle::CurlFileHandle(const char *url, CURL *handle, const char *ca_bundle_path)
+CurlFileHandle::CurlFileHandle(const char *url, CURL *handle,
+ const char *ca_bundle_path)
: m_url(url), m_handle(handle) {
curl_easy_setopt(handle, CURLOPT_URL, m_url.c_str());
@@ -1699,9 +1701,9 @@ PROJ_NETWORK_HANDLE *CurlFileHandle::open(PJ_CONTEXT *ctx, const char *url,
if (!hCurlHandle)
return nullptr;
- auto file =
- std::unique_ptr<CurlFileHandle>(new CurlFileHandle(
- url, hCurlHandle, ctx->ca_bundle_path.empty() ? nullptr : ctx->ca_bundle_path.c_str()));
+ auto file = std::unique_ptr<CurlFileHandle>(new CurlFileHandle(
+ url, hCurlHandle,
+ ctx->ca_bundle_path.empty() ? nullptr : ctx->ca_bundle_path.c_str()));
double oldDelay = MIN_RETRY_DELAY_MS;
std::string headers;