diff options
author | Brad King <brad.king@kitware.com> | 2014-11-25 15:18:49 (GMT) |
---|---|---|
committer | CMake Topic Stage <kwrobot@kitware.com> | 2014-11-25 15:18:49 (GMT) |
commit | 4987b3716583504442bb737c9d1f170ba99feed8 (patch) | |
tree | d9004aecaea8d55209790acd6773f072bed0db8b /Source/cmSystemTools.cxx | |
parent | 623a06a6f3bb2ce4a55f319207116271eb054c72 (diff) | |
parent | 5eb4d7590e0e721b56fc735ab6da35d55ad339d0 (diff) | |
download | CMake-4987b3716583504442bb737c9d1f170ba99feed8.zip CMake-4987b3716583504442bb737c9d1f170ba99feed8.tar.gz CMake-4987b3716583504442bb737c9d1f170ba99feed8.tar.bz2 |
Merge topic 'remove-c_str'
5eb4d759 Remove some unneeded c_str calls.
Diffstat (limited to 'Source/cmSystemTools.cxx')
-rw-r--r-- | Source/cmSystemTools.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmSystemTools.cxx b/Source/cmSystemTools.cxx index 3247f7f..7e93384 100644 --- a/Source/cmSystemTools.cxx +++ b/Source/cmSystemTools.cxx @@ -1409,7 +1409,7 @@ void cmSystemTools::AppendEnv(std::vector<std::string> const& env) for(std::vector<std::string>::const_iterator eit = env.begin(); eit != env.end(); ++eit) { - cmSystemTools::PutEnv(eit->c_str()); + cmSystemTools::PutEnv(*eit); } } @@ -2333,7 +2333,7 @@ bool cmSystemTools::GuessLibrarySOName(std::string const& fullPath, { return false; } - if(!cmSystemTools::ReadSymlink(fullPath.c_str(), soname)) + if(!cmSystemTools::ReadSymlink(fullPath, soname)) { return false; } |