clang-tidy: Pass by value

This commit is contained in:
Regina Pfeifer
2019-01-21 17:15:21 +01:00
committed by Brad King
parent bcc9ea2b3d
commit 5a0784ddea
74 changed files with 265 additions and 257 deletions

View File

@@ -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))
{
}
};