Mercurial > minori
diff src/core/http.cc @ 413:192da585a0a8 default tip
*: fix formatting
the clang-format file was broken andjust using LLVM defaults.
now it's fixed and is more in line with what I actually prefer my
code to look like -- esp. with regards to tabulators
| author | Paper <paper@tflc.us> |
|---|---|
| date | Sat, 25 Jul 2026 14:54:32 -0400 |
| parents | 9323153786dc |
| children |
line wrap: on
line diff
--- a/src/core/http.cc Sat Jul 25 14:33:03 2026 -0400 +++ b/src/core/http.cc Sat Jul 25 14:54:32 2026 -0400 @@ -1,11 +1,11 @@ #include "core/http.h" #include "core/session.h" #include <QByteArray> +#include <cstring> #include <curl/curl.h> #include <iostream> #include <string> #include <vector> -#include <cstring> namespace HTTP { @@ -95,7 +95,7 @@ } } else { res.insert(res.end(), ptr, ptr + len); - //not needed: ptr += len; + // not needed: ptr += len; len = 0; } } @@ -118,8 +118,8 @@ return base; } -static void SetCurlOpts(CURL *curl, const std::string &url, const std::vector<std::string> &headers, - const std::string &data, Type type) +static void SetCurlOpts( + CURL *curl, const std::string &url, const std::vector<std::string> &headers, const std::string &data, Type type) { struct curl_slist *list; @@ -192,8 +192,8 @@ } RequestThread::RequestThread(const std::string &url, const std::vector<std::string> &headers, const std::string &data, - Type type, QObject *parent) - : QThread(parent) + Type type, QObject *parent) + : QThread(parent) { SetUrl(url); SetData(data);
