mirror of
https://github.com/KeqingMoe/argparse.git
synced 2025-07-03 22:54:39 +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) || ...))
|
||||
{}
|
||||
|
||||
Argument& help(const std::string& aHelp) {
|
||||
mHelp = aHelp;
|
||||
Argument& help(std::string aHelp) {
|
||||
mHelp = std::move(aHelp);
|
||||
return *this;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user