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 <saugustine@google.com>
Reviewed-by: Mark Mentovai <mark@chromium.org>
This commit is contained in:
Mike Frysinger 2020-06-23 18:55:43 -04:00
parent a741027533
commit 09b056975d
289 changed files with 3770 additions and 3775 deletions

View file

@ -42,10 +42,10 @@ namespace google_breakpad {
using std::vector;
bool Tokenize(char *line,
const char *separators,
int max_tokens,
vector<char*> *tokens) {
bool Tokenize(char* line,
const char* separators,
int max_tokens,
vector<char*>* tokens) {
tokens->clear();
tokens->reserve(max_tokens);
@ -53,8 +53,8 @@ bool Tokenize(char *line,
// Split tokens on the separator character.
// strip them out before exhausting max_tokens.
char *save_ptr;
char *token = strtok_r(line, separators, &save_ptr);
char* save_ptr;
char* token = strtok_r(line, separators, &save_ptr);
while (token && --remaining > 0) {
tokens->push_back(token);
if (remaining > 1)
@ -69,10 +69,9 @@ bool Tokenize(char *line,
return tokens->size() == static_cast<unsigned int>(max_tokens);
}
void StringToVector(const string &str, vector<char> &vec) {
void StringToVector(const string& str, vector<char>& vec) {
vec.resize(str.length() + 1);
std::copy(str.begin(), str.end(),
vec.begin());
std::copy(str.begin(), str.end(), vec.begin());
vec[str.length()] = '\0';
}