diff options
author | Stephen Hines <srhines@google.com> | 2018-07-19 12:49:48 -0700 |
---|---|---|
committer | Stephen Hines <srhines@google.com> | 2018-07-19 12:50:14 -0700 |
commit | 1a727b090e7d2a19b62410e1908e46e115b9dbc8 (patch) | |
tree | afbabd0cf8d51389116a46a3eac3b67a580ebda8 /cmdline | |
parent | 3e2fad1fba7b89faa675c21676a84c487e03c23e (diff) |
Use std::move() to prevent copying.
Bug: http://b/110779387
Test: Build with new toolchain.
Change-Id: I0fa29e9dc2d7f2a30e8e7137d6ff8ba6f03e80b1
Diffstat (limited to 'cmdline')
-rw-r--r-- | cmdline/detail/cmdline_parse_argument_detail.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmdline/detail/cmdline_parse_argument_detail.h b/cmdline/detail/cmdline_parse_argument_detail.h index 2fee27c067..65c11146aa 100644 --- a/cmdline/detail/cmdline_parse_argument_detail.h +++ b/cmdline/detail/cmdline_parse_argument_detail.h @@ -443,7 +443,7 @@ struct CmdlineParseArgument : CmdlineParseArgumentAny { assert(!argument_info_.has_range_); - return result; + return std::move(result); } CmdlineParseResult<TArg> result = type_parser.Parse(argument); |