mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-04 23:24:39 +00:00
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:
parent
8d8282bac3
commit
6530a06747
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user