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/cmLoadCommandCommand.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/cmLoadCommandCommand.cxx')
-rw-r--r-- | Source/cmLoadCommandCommand.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/Source/cmLoadCommandCommand.cxx b/Source/cmLoadCommandCommand.cxx index e042b07..b6743f1 100644 --- a/Source/cmLoadCommandCommand.cxx +++ b/Source/cmLoadCommandCommand.cxx @@ -208,7 +208,7 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& args, } // Try to find the program. - std::string fullPath = cmSystemTools::FindFile(moduleName.c_str(), path); + std::string fullPath = cmSystemTools::FindFile(moduleName, path); if (fullPath == "") { std::ostringstream e; e << "Attempt to load command failed from file \"" << moduleName << "\""; @@ -237,14 +237,14 @@ bool cmLoadCommandCommand::InitialPass(std::vector<std::string> const& args, // find the init function std::string initFuncName = args[0] + "Init"; CM_INIT_FUNCTION initFunction = - (CM_INIT_FUNCTION)cmsys::DynamicLoader::GetSymbolAddress( - lib, initFuncName.c_str()); + (CM_INIT_FUNCTION)cmsys::DynamicLoader::GetSymbolAddress(lib, + initFuncName); if (!initFunction) { initFuncName = "_"; initFuncName += args[0]; initFuncName += "Init"; initFunction = (CM_INIT_FUNCTION)( - cmsys::DynamicLoader::GetSymbolAddress(lib, initFuncName.c_str())); + cmsys::DynamicLoader::GetSymbolAddress(lib, initFuncName)); } // if the symbol is found call it to set the name on the // function blocker |