mirror of
https://github.com/Kitware/CMake.git
synced 2026-05-04 05:10:10 -05:00
clang-tidy: Pass by value
This commit is contained in:
committed by
Brad King
parent
bcc9ea2b3d
commit
5a0784ddea
@@ -2,13 +2,15 @@
|
||||
file Copyright.txt or https://cmake.org/licensing for details. */
|
||||
#include "cmExpandedCommandArgument.h"
|
||||
|
||||
#include <utility>
|
||||
|
||||
cmExpandedCommandArgument::cmExpandedCommandArgument()
|
||||
{
|
||||
}
|
||||
|
||||
cmExpandedCommandArgument::cmExpandedCommandArgument(std::string const& value,
|
||||
cmExpandedCommandArgument::cmExpandedCommandArgument(std::string value,
|
||||
bool quoted)
|
||||
: Value(value)
|
||||
: Value(std::move(value))
|
||||
, Quoted(quoted)
|
||||
{
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user