Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1606)

Unified Diff: mojo/public/cpp/bindings/lib/message.cc

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: rebase Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/remoting/proto_utils.cc ('k') | mojo/public/cpp/bindings/lib/message_header_validator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/message.cc
diff --git a/mojo/public/cpp/bindings/lib/message.cc b/mojo/public/cpp/bindings/lib/message.cc
index be19cf371fc06adb27185c46654be9f56277eecb..68337d12d5b5769ce89e82e22c987ea23b0708d7 100644
--- a/mojo/public/cpp/bindings/lib/message.cc
+++ b/mojo/public/cpp/bindings/lib/message.cc
@@ -106,13 +106,13 @@ uint32_t Message::payload_num_bytes() const {
}
uint32_t Message::payload_num_interface_ids() const {
- auto array_pointer =
+ auto* array_pointer =
version() < 2 ? nullptr : header_v2()->payload_interface_ids.Get();
return array_pointer ? static_cast<uint32_t>(array_pointer->size()) : 0;
}
const uint32_t* Message::payload_interface_ids() const {
- auto array_pointer =
+ auto* array_pointer =
version() < 2 ? nullptr : header_v2()->payload_interface_ids.Get();
return array_pointer ? array_pointer->storage() : nullptr;
}
@@ -174,7 +174,7 @@ void Message::SerializeAssociatedEndpointHandles(
DCHECK(header_v2()->payload_interface_ids.is_null());
size_t size = associated_endpoint_handles_.size();
- auto data = internal::Array_Data<uint32_t>::New(size, buffer());
+ auto* data = internal::Array_Data<uint32_t>::New(size, buffer());
header_v2()->payload_interface_ids.Set(data);
for (size_t i = 0; i < size; ++i) {
« no previous file with comments | « media/remoting/proto_utils.cc ('k') | mojo/public/cpp/bindings/lib/message_header_validator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698