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

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

Issue 2691393002: Fix auto raw pointer deduction on linux (Closed)
Patch Set: update 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
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 7da4a97b835dc75b6effb1fe21fb2453d945c0db..bf31a71152dba290fc5178061036c8618e3df080 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) {

Powered by Google App Engine
This is Rietveld 408576698