diff options
author | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-11-24 08:54:05 +0000 |
---|---|---|
committer | Malcolm Parsons <malcolm.parsons@gmail.com> | 2016-11-24 08:54:05 +0000 |
commit | 1c7f07aa3e8b268877f4163b95d066647f0df651 (patch) | |
tree | 3766516d4cdad2858e7b3e49dbf7bac304c956f7 /llvm/include/llvm/Support/CommandLine.h | |
parent | a8cbbdc9b6bd2b845bfe0d3d677a1edf9f67b895 (diff) | |
download | bcm5719-llvm-1c7f07aa3e8b268877f4163b95d066647f0df651.tar.gz bcm5719-llvm-1c7f07aa3e8b268877f4163b95d066647f0df651.zip |
[CommandLine] Remove redundant initializers for StringRef members
Summary: The default constructor for a StringRef stores an empty string.
Reviewers: beanz, zturner
Subscribers: llvm-commits
Differential Revision: https://reviews.llvm.org/D27067
llvm-svn: 287857
Diffstat (limited to 'llvm/include/llvm/Support/CommandLine.h')
-rw-r--r-- | llvm/include/llvm/Support/CommandLine.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/llvm/include/llvm/Support/CommandLine.h b/llvm/include/llvm/Support/CommandLine.h index fc675930760..2d5eb4f72f4 100644 --- a/llvm/include/llvm/Support/CommandLine.h +++ b/llvm/include/llvm/Support/CommandLine.h @@ -179,8 +179,8 @@ extern OptionCategory GeneralCategory; // class SubCommand { private: - StringRef Name = ""; - StringRef Description = ""; + StringRef Name; + StringRef Description; protected: void registerSubCommand(); @@ -304,8 +304,8 @@ protected: enum OptionHidden Hidden) : NumOccurrences(0), Occurrences(OccurrencesFlag), Value(0), HiddenFlag(Hidden), Formatting(NormalFormatting), Misc(0), Position(0), - AdditionalVals(0), ArgStr(""), HelpStr(""), ValueStr(""), - Category(&GeneralCategory), FullyInitialized(false) {} + AdditionalVals(0), Category(&GeneralCategory), FullyInitialized(false) { + } inline void setNumAdditionalVals(unsigned n) { AdditionalVals = n; } |