summaryrefslogtreecommitdiff
path: root/Source/cmBuildCommand.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'Source/cmBuildCommand.cxx')
-rw-r--r--Source/cmBuildCommand.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmBuildCommand.cxx b/Source/cmBuildCommand.cxx
index 6836151030..fd876004b0 100644
--- a/Source/cmBuildCommand.cxx
+++ b/Source/cmBuildCommand.cxx
@@ -32,7 +32,7 @@ bool cmBuildCommand::MainSignature(std::vector<std::string> const& args)
}
// The cmake variable in which to store the result.
- const char* variable = args[0].c_str();
+ std::string const& variable = args[0];
// Parse remaining arguments.
std::string configuration;
@@ -104,7 +104,7 @@ bool cmBuildCommand::TwoArgsSignature(std::vector<std::string> const& args)
return false;
}
- const char* define = args[0].c_str();
+ std::string const& define = args[0];
const char* cacheValue = this->Makefile->GetDefinition(define);
std::string configType;