From 09b056975dacd1f0f815ad820b6dc9913b0118a3 Mon Sep 17 00:00:00 2001 From: Mike Frysinger Date: Tue, 23 Jun 2020 18:55:43 -0400 Subject: fix pointer style to match the style guide We do this in a lot of places, but we're inconsistent. Normalize the code to the Google C++ style guide. Change-Id: Ic2aceab661ce8f6b993dda21b1cdf5d2198dcbbf Reviewed-on: https://chromium-review.googlesource.com/c/breakpad/breakpad/+/2262932 Reviewed-by: Sterling Augustine Reviewed-by: Mark Mentovai --- src/tools/windows/converter_exe/http_download.cc | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/tools/windows/converter_exe/http_download.cc') diff --git a/src/tools/windows/converter_exe/http_download.cc b/src/tools/windows/converter_exe/http_download.cc index 5afc1ccc..58fcbb3b 100644 --- a/src/tools/windows/converter_exe/http_download.cc +++ b/src/tools/windows/converter_exe/http_download.cc @@ -83,11 +83,11 @@ class AutoPtr { // CheckParameters ensures that the parameters in |parameters| are safe for // use in an HTTP URL. Returns true if they are, false if unsafe characters // are present. -static bool CheckParameters(const map *parameters) { +static bool CheckParameters(const map* parameters) { for (map::const_iterator iterator = parameters->begin(); iterator != parameters->end(); ++iterator) { - const wstring &key = iterator->first; + const wstring& key = iterator->first; if (key.empty()) { // Disallow empty parameter names. return false; @@ -99,7 +99,7 @@ static bool CheckParameters(const map *parameters) { } } - const wstring &value = iterator->second; + const wstring& value = iterator->second; for (unsigned int i = 0; i < value.size(); ++i) { wchar_t c = value[i]; if (c < 32 || c == '"' || c == '?' || c == '&' || c > 127) { @@ -141,8 +141,8 @@ HttpClient* HTTPDownload::CreateHttpClient(const wchar_t* url) { } // static -bool HTTPDownload::Download(const wstring &url, - const map *parameters, +bool HTTPDownload::Download(const wstring& url, + const map* parameters, string *content, int *status_code) { assert(content); AutoPtr http_client(CreateHttpClient(url.c_str())); -- cgit v1.2.1