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

Unified Diff: src/IceClFlagsExtra.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/IceCfgNode.cpp ('k') | src/IceCompileServer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/IceClFlagsExtra.h
diff --git a/src/IceClFlagsExtra.h b/src/IceClFlagsExtra.h
index 9346d6e571cb231d3a89c0a775fa8275b6f94b8f..6f393363efba3a8389e7cbdc49bfe81b1412a1d2 100644
--- a/src/IceClFlagsExtra.h
+++ b/src/IceClFlagsExtra.h
@@ -25,9 +25,7 @@ class ClFlagsExtra {
ClFlagsExtra &operator=(const ClFlagsExtra &) = delete;
public:
- ClFlagsExtra()
- : AlwaysExitSuccess(false), BuildOnRead(false), GenerateBuildAtts(false),
- LLVMVerboseErrors(false), InputFileFormat(llvm::LLVMFormat) {}
+ ClFlagsExtra() = default;
bool getAlwaysExitSuccess() const { return AlwaysExitSuccess; }
void setAlwaysExitSuccess(bool NewValue) { AlwaysExitSuccess = NewValue; }
@@ -61,17 +59,17 @@ public:
}
private:
- bool AlwaysExitSuccess;
- bool BuildOnRead;
- bool GenerateBuildAtts;
- bool LLVMVerboseErrors;
+ bool AlwaysExitSuccess = false;
+ bool BuildOnRead = false;
+ bool GenerateBuildAtts = false;
+ bool LLVMVerboseErrors = false;
- llvm::NaClFileFormat InputFileFormat;
+ llvm::NaClFileFormat InputFileFormat = llvm::LLVMFormat;
- IceString AppName;
- IceString IRFilename;
- IceString LogFilename;
- IceString OutputFilename;
+ IceString AppName = "";
+ IceString IRFilename = "";
+ IceString LogFilename = "";
+ IceString OutputFilename = "";
};
} // end of namespace Ice
« no previous file with comments | « src/IceCfgNode.cpp ('k') | src/IceCompileServer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698