summaryrefslogtreecommitdiffstats
path: root/Source/cmSubdirCommand.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-30 17:34:06 (GMT)
committerDaniel Pfeifer <daniel@pfeifer-mail.de>2016-10-30 17:34:06 (GMT)
commit602b78aa79f6d99e775fa0a84fb441156d192833 (patch)
tree41e41ce60fd8eefb7e34db35884bfa9925d73c8b /Source/cmSubdirCommand.cxx
parentc58c739da7287a1cb33558f4e121ecdb23cfadd9 (diff)
downloadCMake-602b78aa79f6d99e775fa0a84fb441156d192833.zip
CMake-602b78aa79f6d99e775fa0a84fb441156d192833.tar.gz
CMake-602b78aa79f6d99e775fa0a84fb441156d192833.tar.bz2
Remove redundant c_str() calls
Diffstat (limited to 'Source/cmSubdirCommand.cxx')
-rw-r--r--Source/cmSubdirCommand.cxx6
1 files changed, 2 insertions, 4 deletions
diff --git a/Source/cmSubdirCommand.cxx b/Source/cmSubdirCommand.cxx
index 55761bf..3727dfa 100644
--- a/Source/cmSubdirCommand.cxx
+++ b/Source/cmSubdirCommand.cxx
@@ -31,12 +31,10 @@ bool cmSubdirCommand::InitialPass(std::vector<std::string> const& args,
// if they specified a relative path then compute the full
std::string srcPath =
- std::string(this->Makefile->GetCurrentSourceDirectory()) + "/" +
- i->c_str();
+ std::string(this->Makefile->GetCurrentSourceDirectory()) + "/" + *i;
if (cmSystemTools::FileIsDirectory(srcPath)) {
std::string binPath =
- std::string(this->Makefile->GetCurrentBinaryDirectory()) + "/" +
- i->c_str();
+ std::string(this->Makefile->GetCurrentBinaryDirectory()) + "/" + *i;
this->Makefile->AddSubDirectory(srcPath, binPath, excludeFromAll, false);
}
// otherwise it is a full path