From 86dc86dd6c66a6d61234efcddddddf466a6597d2 Mon Sep 17 00:00:00 2001 From: Pavel Solodovnikov Date: Wed, 24 May 2017 23:18:28 +0300 Subject: Add const-reference qualifications --- Source/cmAddDependenciesCommand.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Source/cmAddDependenciesCommand.cxx') diff --git a/Source/cmAddDependenciesCommand.cxx b/Source/cmAddDependenciesCommand.cxx index e49d5d5d90..a73b57e820 100644 --- a/Source/cmAddDependenciesCommand.cxx +++ b/Source/cmAddDependenciesCommand.cxx @@ -19,7 +19,7 @@ bool cmAddDependenciesCommand::InitialPass( return false; } - std::string target_name = args[0]; + std::string const& target_name = args[0]; if (this->Makefile->IsAlias(target_name)) { std::ostringstream e; e << "Cannot add target-level dependencies to alias target \"" -- cgit v1.2.1