diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-02-26 15:01:37 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-02-26 15:01:37 +0200 |
commit | 1be32cc6d36766d42a0b80d2768bf31e5b8aa8bb (patch) | |
tree | cd5d564608a98289bd39ca0fb71db843ed524e58 /desktop | |
parent | 0eeeaae5d1edc0dbd0962666bdf9432e84cfa0e6 (diff) |
loplugin:redundantcast
Change-Id: I8c44383a751d7b3440dcdede3646231414e2f89c
Diffstat (limited to 'desktop')
-rw-r--r-- | desktop/source/minidump/minidump_upload.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/desktop/source/minidump/minidump_upload.cxx b/desktop/source/minidump/minidump_upload.cxx index 3077d9449fd8..29814be09d35 100644 --- a/desktop/source/minidump/minidump_upload.cxx +++ b/desktop/source/minidump/minidump_upload.cxx @@ -45,9 +45,9 @@ static size_t WriteCallback(void *ptr, size_t size, if (!userp) return 0; - std::string* response = reinterpret_cast<std::string *>(userp); + std::string* response = static_cast<std::string *>(userp); size_t real_size = size * nmemb; - response->append(reinterpret_cast<char *>(ptr), real_size); + response->append(static_cast<char *>(ptr), real_size); return real_size; } @@ -117,7 +117,7 @@ bool uploadContent(std::map<std::string, std::string>& parameters) curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, WriteCallback); curl_easy_setopt(curl, CURLOPT_WRITEDATA, - reinterpret_cast<void *>(&response_body)); + static_cast<void *>(&response_body)); // Fail if 400+ is returned from the web server. curl_easy_setopt(curl, CURLOPT_FAILONERROR, 1); |