Copy more members in ArgumentParser copy constructor

This showed as a cppcheck warning: uninitMemberVar.

Signed-off-by: Sean Robinson <sean.robinson@scottsdalecc.edu>
This commit is contained in:
Sean Robinson 2021-11-10 13:54:31 -07:00
parent 8d8282bac3
commit 6530a06747

View File

@ -857,6 +857,9 @@ public:
ArgumentParser(const ArgumentParser &other) ArgumentParser(const ArgumentParser &other)
: mProgramName(other.mProgramName), : mProgramName(other.mProgramName),
mVersion(other.mVersion),
mDescription(other.mDescription),
mEpilog(other.mEpilog),
mIsParsed(other.mIsParsed), mIsParsed(other.mIsParsed),
mPositionalArguments(other.mPositionalArguments), mPositionalArguments(other.mPositionalArguments),
mOptionalArguments(other.mOptionalArguments) { mOptionalArguments(other.mOptionalArguments) {