diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-10-30 17:34:06 (GMT) |
---|---|---|
committer | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-10-30 17:34:06 (GMT) |
commit | 602b78aa79f6d99e775fa0a84fb441156d192833 (patch) | |
tree | 41e41ce60fd8eefb7e34db35884bfa9925d73c8b /Source/cmIncludeCommand.cxx | |
parent | c58c739da7287a1cb33558f4e121ecdb23cfadd9 (diff) | |
download | CMake-602b78aa79f6d99e775fa0a84fb441156d192833.zip CMake-602b78aa79f6d99e775fa0a84fb441156d192833.tar.gz CMake-602b78aa79f6d99e775fa0a84fb441156d192833.tar.bz2 |
Remove redundant c_str() calls
Diffstat (limited to 'Source/cmIncludeCommand.cxx')
-rw-r--r-- | Source/cmIncludeCommand.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmIncludeCommand.cxx b/Source/cmIncludeCommand.cxx index 0f7799e..12e0c9a 100644 --- a/Source/cmIncludeCommand.cxx +++ b/Source/cmIncludeCommand.cxx @@ -69,7 +69,7 @@ bool cmIncludeCommand::InitialPass(std::vector<std::string> const& args, module += ".cmake"; std::string mfile = this->Makefile->GetModulesFile(module.c_str()); if (!mfile.empty()) { - fname = mfile.c_str(); + fname = mfile; } } @@ -111,7 +111,7 @@ bool cmIncludeCommand::InitialPass(std::vector<std::string> const& args, } std::string listFile = cmSystemTools::CollapseFullPath( - fname.c_str(), this->Makefile->GetCurrentSourceDirectory()); + fname, this->Makefile->GetCurrentSourceDirectory()); if (optional && !cmSystemTools::FileExists(listFile.c_str())) { if (!resultVarName.empty()) { this->Makefile->AddDefinition(resultVarName, "NOTFOUND"); |