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

Unified Diff: src/IceFixups.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/IceELFSection.h ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceFixups.h
diff --git a/src/IceFixups.h b/src/IceFixups.h
index 3b2b524d162cca70db6fac5c4734d65d04435bf4..9ec72c36bd331dddf540120e8f427f7465189c03 100644
--- a/src/IceFixups.h
+++ b/src/IceFixups.h
@@ -28,7 +28,7 @@ struct AssemblerFixup {
AssemblerFixup &operator=(const AssemblerFixup &) = delete;
public:
- AssemblerFixup() : position_(0), kind_(0), value_(nullptr) {}
+ AssemblerFixup() = default;
AssemblerFixup(const AssemblerFixup &) = default;
intptr_t position() const { return position_; }
void set_position(intptr_t Position) { position_ = Position; }
@@ -47,9 +47,9 @@ public:
void emit(GlobalContext *Ctx, RelocOffsetT BaseOffset) const;
private:
- intptr_t position_;
- FixupKind kind_;
- const Constant *value_;
+ intptr_t position_ = 0;
+ FixupKind kind_ = 0;
+ const Constant *value_ = nullptr;
};
typedef std::vector<AssemblerFixup> FixupList;
« no previous file with comments | « src/IceELFSection.h ('k') | src/IceGlobalContext.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698