diff options
author | Rolf Eike Beer <kde@opensource.sf-tec.de> | 2014-01-15 23:56:38 +0100 |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2014-01-16 09:28:29 -0500 |
commit | c768e398f9c29aa12680fe89a52ce9b00eff2866 (patch) | |
tree | d60f39ce1c2b37557ec83d9e91c64ff9147f94fe /Source/cmFLTKWrapUICommand.cxx | |
parent | 4c7bac45ae1347ebea6709a7fdf59f50ff7bbb15 (diff) | |
download | cmake-c768e398f9c29aa12680fe89a52ce9b00eff2866.tar.gz |
cmMakefile: make some methods take const std::string& instead of const char*
Most callers already have a std::string, on which they called c_str() to pass it
into these methods, which internally converted it back to std::string. Pass a
std::string directly to these methods now, avoiding all these conversions.
Those methods that only pass in a const char* will get the conversion to
std::string now only once.
Diffstat (limited to 'Source/cmFLTKWrapUICommand.cxx')
-rw-r--r-- | Source/cmFLTKWrapUICommand.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Source/cmFLTKWrapUICommand.cxx b/Source/cmFLTKWrapUICommand.cxx index 4ce1ea592f..4dd81be961 100644 --- a/Source/cmFLTKWrapUICommand.cxx +++ b/Source/cmFLTKWrapUICommand.cxx @@ -120,7 +120,7 @@ void cmFLTKWrapUICommand::FinalPass() // people should add the srcs to the target themselves, but the old command // didn't support that, so check and see if they added the files in and if // they didn;t then print a warning and add then anyhow - cmTarget* target = this->Makefile->FindTarget(this->Target.c_str()); + cmTarget* target = this->Makefile->FindTarget(this->Target); if(!target) { std::string msg = |