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/processor/simple_serializer.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/processor/simple_serializer.h') diff --git a/src/processor/simple_serializer.h b/src/processor/simple_serializer.h index 275f51ce..9e51d806 100644 --- a/src/processor/simple_serializer.h +++ b/src/processor/simple_serializer.h @@ -49,10 +49,10 @@ typedef uint64_t MemAddr; template class SimpleSerializer { public: // Calculate and return the size of the 'item'. - static size_t SizeOf(const Type &item) { return sizeof(item); } + static size_t SizeOf(const Type& item) { return sizeof(item); } // Write 'item' to memory location 'dest', and return to the "end" address of // data written, i.e., the address after the final byte written. - static char *Write(const Type &item, char *dest) { + static char* Write(const Type& item, char* dest) { new (dest) Type(item); return dest + SizeOf(item); } -- cgit v1.2.1