OSDN Git Service
(root)
/
android-x86
/
system-bt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e69ef21
)
PDL: Always default initialize members
author
Myles Watson
<mylesgw@google.com>
Mon, 24 Feb 2020 21:47:16 +0000
(13:47 -0800)
committer
Myles Watson
<mylesgw@google.com>
Mon, 24 Feb 2020 22:35:27 +0000
(14:35 -0800)
For builders and structs, initialize members.
Bug:
148096951
Test: ./cert/run_cert_facade_only.sh
Change-Id: Idf8a58fac40515e931b6765e56f0c67be31695e2
gd/packet/parser/parent_def.cc
patch
|
blob
|
history
diff --git
a/gd/packet/parser/parent_def.cc
b/gd/packet/parser/parent_def.cc
index
1557bf6
..
21f530c
100644
(file)
--- a/
gd/packet/parser/parent_def.cc
+++ b/
gd/packet/parser/parent_def.cc
@@
-241,7
+241,7
@@
void ParentDef::GenMembers(std::ostream& s) const {
// Add the parameter list.
for (int i = 0; i < fields_.size(); i++) {
if (fields_[i]->GenBuilderMember(s)) {
- s << "_;";
+ s << "_
{}
;";
}
}
}