Subzero: Use C++11 member initializers where practical.
Also change the pattern "foo() {}" into "foo() = default;" for ctors and dtors.
Generally avoids initializing unique_ptr<> members to nullptr in a .h file, because that requires knowing the definition of the underlying class which may not be available to all includers.
BUG= none
R=jpp@chromium.org
Review URL: https://codereview.chromium.org/1197223002
diff --git a/src/IceELFObjectWriter.h b/src/IceELFObjectWriter.h
index a9127ac..9356ee3 100644
--- a/src/IceELFObjectWriter.h
+++ b/src/IceELFObjectWriter.h
@@ -89,7 +89,7 @@
private:
GlobalContext &Ctx;
ELFStreamer &Str;
- bool SectionNumbersAssigned;
+ bool SectionNumbersAssigned = false;
bool ELF64;
// All created sections, separated into different pools.