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/IceDefs.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/IceConverter.h ('k') | src/IceELFObjectWriter.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceDefs.h
diff --git a/src/IceDefs.h b/src/IceDefs.h
index 0e8cdfbe39d6117a11e87ecd1c064ebfe44fb478..64e70de9440be3d43324a52991c58e124f57c8fb 100644
--- a/src/IceDefs.h
+++ b/src/IceDefs.h
@@ -201,7 +201,7 @@ class ErrorCode : public std::error_code {
ErrorCode &operator=(const ErrorCode &) = delete;
public:
- ErrorCode() : HasError(false) {}
+ ErrorCode() = default;
void assign(ErrorCodes Code) {
if (!HasError) {
HasError = true;
@@ -211,7 +211,7 @@ public:
void assign(int Code) { assign(static_cast<ErrorCodes>(Code)); }
private:
- bool HasError;
+ bool HasError = false;
};
// Reverse range adaptors written in terms of llvm::make_range().
« no previous file with comments | « src/IceConverter.h ('k') | src/IceELFObjectWriter.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698