libbinder: Fix initializer order error in RpcState.cpp
Building with -Wreorder-init-list fails with an error in
RpcState.cpp when initializing a BinderNode structure.
This fixes the error by manually moving the initializers
in the right order.
Bug: None
Test: m
Change-Id: I81ca1f52ad0f6955f0a32658f8f367a3539baf06
diff --git a/libs/binder/RpcState.cpp b/libs/binder/RpcState.cpp
index 4ddbce7..2e7084e 100644
--- a/libs/binder/RpcState.cpp
+++ b/libs/binder/RpcState.cpp
@@ -125,8 +125,8 @@
auto&& [it, inserted] = mNodeForAddress.insert({RpcWireAddress::toRaw(address),
BinderNode{
.binder = binder,
- .timesSent = 1,
.sentRef = binder,
+ .timesSent = 1,
}});
if (inserted) {
*outAddress = it->first;