mirror of
https://github.com/Kitware/CMake.git
synced 2026-04-23 14:48:19 -05:00
clang-tidy: Pass by value
This commit is contained in:
committed by
Brad King
parent
bcc9ea2b3d
commit
5a0784ddea
@@ -6,6 +6,7 @@
|
||||
#include "cmConfigure.h" // IWYU pragma: keep
|
||||
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
class cmInstallExportGenerator;
|
||||
@@ -17,8 +18,8 @@ class cmExportSet
|
||||
{
|
||||
public:
|
||||
/// Construct an empty export set named \a name
|
||||
cmExportSet(const std::string& name)
|
||||
: Name(name)
|
||||
cmExportSet(std::string name)
|
||||
: Name(std::move(name))
|
||||
{
|
||||
}
|
||||
/// Destructor
|
||||
|
||||
Reference in New Issue
Block a user