diff options
author | Brad King <brad.king@kitware.com> | 2017-05-28 13:13:06 (GMT) |
---|---|---|
committer | Kitware Robot <kwrobot@kitware.com> | 2017-05-28 13:13:12 (GMT) |
commit | f8642f953d3d8547bd31fcb35a4737fa91d9126f (patch) | |
tree | 1a56170d6d43c1515b49142c7223ea06eb7faa5d /Source/cmGetSourceFilePropertyCommand.cxx | |
parent | f9ea6247c10fa0b39977f9b75d266e7282b19a1b (diff) | |
parent | 2c2bb5f527b4c0e0eca7867492c046be23818c9a (diff) | |
download | CMake-f8642f953d3d8547bd31fcb35a4737fa91d9126f.zip CMake-f8642f953d3d8547bd31fcb35a4737fa91d9126f.tar.gz CMake-f8642f953d3d8547bd31fcb35a4737fa91d9126f.tar.bz2 |
Merge topic 'reduce-string-copying'
2c2bb5f5 Remove unnecessary operator<< usage
1e4e2f99 Remove unused variables
25486156 Improved checking for number of arguments passed
86dc86dd Add const-reference qualifications
76bdb407 Change std::basic_string<char> to std::string
Acked-by: Kitware Robot <kwrobot@kitware.com>
Merge-request: !886
Diffstat (limited to 'Source/cmGetSourceFilePropertyCommand.cxx')
-rw-r--r-- | Source/cmGetSourceFilePropertyCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmGetSourceFilePropertyCommand.cxx b/Source/cmGetSourceFilePropertyCommand.cxx index 509ef95..1a5f08e 100644 --- a/Source/cmGetSourceFilePropertyCommand.cxx +++ b/Source/cmGetSourceFilePropertyCommand.cxx @@ -15,8 +15,8 @@ bool cmGetSourceFilePropertyCommand::InitialPass( this->SetError("called with incorrect number of arguments"); return false; } - const char* var = args[0].c_str(); - const char* file = args[1].c_str(); + std::string const& var = args[0]; + std::string const& file = args[1]; cmSourceFile* sf = this->Makefile->GetSource(file); // for the location we must create a source file first |