From 279c7ba28804960ae3b2ec0753b4c3a92d5a6ede Mon Sep 17 00:00:00 2001 From: jak1 Date: Fri, 7 Apr 2023 03:35:07 +0200 Subject: fix formating --- src/net/download.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/net/download.cpp b/src/net/download.cpp index 0c0008d0e..973302c67 100644 --- a/src/net/download.cpp +++ b/src/net/download.cpp @@ -74,7 +74,7 @@ Download::Download(void *const ptr, mFormPost(nullptr), #else mMime(nullptr), -#endif // LIBCURL_VERSION_NUM < 0x073800 +#endif // LIBCURL_VERSION_NUM < 0x073800 mError(static_cast(calloc(CURL_ERROR_SIZE + 1, 1))), mIgnoreError(ignoreError), mUpload(isUpload), @@ -115,7 +115,7 @@ Download::~Download() curl_mime_free(mMime); mMime = nullptr; } -#endif // LIBCURL_VERSION_NUM < 0x073800 +#endif // LIBCURL_VERSION_NUM < 0x073800 if (mHeaders != nullptr) @@ -314,7 +314,7 @@ int Download::downloadThread(void *ptr) curl_easy_setopt(d->mCurl, CURLOPT_HTTPPOST, d->mFormPost); #else curl_easy_setopt(d->mCurl, CURLOPT_MIMEPOST, d->mMime); -#endif // LIBCURL_VERSION_NUM < 0x073800 +#endif // LIBCURL_VERSION_NUM < 0x073800 curl_easy_setopt(d->mCurl, CURLOPT_WRITEFUNCTION, &Download::writeFunction); mUploadResponse.clear(); @@ -360,11 +360,11 @@ int Download::downloadThread(void *ptr) curl_easy_setopt(d->mCurl, CURLOPT_XFERINFOFUNCTION, &downloadProgress); -#endif // LIBCURL_VERSION_NUM < 0x072000 +#endif // LIBCURL_VERSION_NUM < 0x072000 curl_easy_setopt(d->mCurl, CURLOPT_PROGRESSDATA, ptr); #if LIBCURL_VERSION_NUM >= 0x070a00 curl_easy_setopt(d->mCurl, CURLOPT_NOSIGNAL, 1); -#endif // LIBCURL_VERSION_NUM >= 0x070a00 +#endif // LIBCURL_VERSION_NUM >= 0x070a00 curl_easy_setopt(d->mCurl, CURLOPT_CONNECTTIMEOUT, 30); curl_easy_setopt(d->mCurl, CURLOPT_TIMEOUT, 1800); addHeaders(d->mCurl); @@ -606,7 +606,7 @@ void Download::secureCurl(CURL *const curl A_UNUSED) CURLPROTO_HTTP | CURLPROTO_HTTPS); curl_easy_setopt(curl, CURLOPT_REDIR_PROTOCOLS, CURLPROTO_HTTP | CURLPROTO_HTTPS); -#endif // LIBCURL_VERSION_NUM >= 0x071304 && LIBCURL_VERSION_NUM <= 0x075500 +#endif // LIBCURL_VERSION_NUM >= 0x071304 && LIBCURL_VERSION_NUM <= 0x075500 #if LIBCURL_VERSION_NUM >= 0x075500 curl_easy_setopt(curl, CURLOPT_PROTOCOLS_STR, "http,https"); -- cgit v1.2.3-70-g09d2