mirror of
https://github.com/Kitware/CMake.git
synced 2026-02-22 06:59:01 -06:00
clang-tidy: Pass by value
This commit is contained in:
committed by
Brad King
parent
bcc9ea2b3d
commit
5a0784ddea
@@ -12,6 +12,7 @@
|
||||
#include <map>
|
||||
#include <set>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
#include <vector>
|
||||
|
||||
class cmCustomCommand;
|
||||
@@ -267,9 +268,9 @@ private:
|
||||
cmGeneratorTarget* Target = nullptr;
|
||||
std::string Language;
|
||||
LocalObjectEntry() {}
|
||||
LocalObjectEntry(cmGeneratorTarget* t, const std::string& lang)
|
||||
LocalObjectEntry(cmGeneratorTarget* t, std::string lang)
|
||||
: Target(t)
|
||||
, Language(lang)
|
||||
, Language(std::move(lang))
|
||||
{
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user