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

Unified Diff: src/IceELFSection.h

Issue 1197223002: Subzero: Use C++11 member initializers where practical. (Closed) Base URL: https://chromium.googlesource.com/native_client/pnacl-subzero.git@master
Patch Set: Rebase Created 5 years, 6 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 | « src/IceELFObjectWriter.cpp ('k') | src/IceFixups.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceELFSection.h
diff --git a/src/IceELFSection.h b/src/IceELFSection.h
index c2ef9bf4d3be82eca5f5a912043137f81a3a49b5..ecbf555bd43c22bb45b59ec3c0e660ce69e42e54 100644
--- a/src/IceELFSection.h
+++ b/src/IceELFSection.h
@@ -44,7 +44,7 @@ public:
// incrementally or only after the program is completely defined.
ELFSection(const IceString &Name, Elf64_Word ShType, Elf64_Xword ShFlags,
Elf64_Xword ShAddralign, Elf64_Xword ShEntsize)
- : Name(Name), Header(), Number(NoSectionNumber) {
+ : Name(Name), Header() {
Header.sh_type = ShType;
Header.sh_flags = ShFlags;
Header.sh_addralign = ShAddralign;
@@ -81,7 +81,7 @@ public:
template <bool IsELF64> void writeHeader(ELFStreamer &Str);
protected:
- ~ELFSection() {}
+ ~ELFSection() = default;
// Name of the section in convenient string form (instead of a index
// into the Section Header String Table, which is not known till later).
@@ -92,7 +92,7 @@ protected:
Elf64_Shdr Header;
// The number of the section after laying out sections.
- SizeT Number;
+ SizeT Number = NoSectionNumber;
};
// Models text/code sections. Code is written out incrementally and the
« no previous file with comments | « src/IceELFObjectWriter.cpp ('k') | src/IceFixups.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698