mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-05 07:34:40 +00:00
Make use of move semantics
This commit is contained in:
parent
16ef9d84e0
commit
94e4458641
@ -77,8 +77,8 @@ public:
|
|||||||
, mIsOptional((is_optional(args) || ...))
|
, mIsOptional((is_optional(args) || ...))
|
||||||
{}
|
{}
|
||||||
|
|
||||||
Argument& help(const std::string& aHelp) {
|
Argument& help(std::string aHelp) {
|
||||||
mHelp = aHelp;
|
mHelp = std::move(aHelp);
|
||||||
return *this;
|
return *this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user