diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2020-10-27 07:59:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2020-10-27 10:14:28 +0100 |
commit | c070fac05fef41f788b53fe2c1f60519688a40b1 (patch) | |
tree | 9417c5d1011707a2a1388307dd8a6c5efd85d73d /cui | |
parent | 142dc93d9ad793e036baa5573aea31cb6f416f57 (diff) |
Teach loplugin:toolslong about curl_easy_getinfo
...see a9266c39cc71c6f23bfcad4ff6d33ccac53b5e52 "loplugin:toolslong
(--enable-online-update)" arguing that "the third argument to
curl_easy_getinfo(..., CURLINFO_RESPONSE_CODE, ...)
must be a pointer to long".
Change-Id: I7c542595219d2387cf869953fe40faef2b41b44f
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/104857
Tested-by: Jenkins
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/dialogs/AdditionsDialog.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cui/source/dialogs/AdditionsDialog.cxx b/cui/source/dialogs/AdditionsDialog.cxx index b8e2cee3febc..cf9a605d5970 100644 --- a/cui/source/dialogs/AdditionsDialog.cxx +++ b/cui/source/dialogs/AdditionsDialog.cxx @@ -117,7 +117,7 @@ std::string curlGet(const OString& rURL) curl_easy_setopt(curl, CURLOPT_WRITEDATA, static_cast<void*>(&response_body)); CURLcode cc = curl_easy_perform(curl); - tools::Long http_code = 0; + long http_code = 0; curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &http_code); if (http_code != 200) @@ -150,7 +150,7 @@ void curlDownload(const OString& rURL, const OUString& sFileURL) curl_easy_setopt(curl, CURLOPT_WRITEDATA, static_cast<void*>(&aFile)); CURLcode cc = curl_easy_perform(curl); - tools::Long http_code = 0; + long http_code = 0; curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &http_code); if (http_code != 200) |