diff options
author | Stephen Kelly <steveire@gmail.com> | 2014-11-23 10:05:50 (GMT) |
---|---|---|
committer | Stephen Kelly <steveire@gmail.com> | 2014-11-23 10:09:54 (GMT) |
commit | 5eb4d7590e0e721b56fc735ab6da35d55ad339d0 (patch) | |
tree | e7edc44c5913f7647c46fa1a9df0472b3000ece2 /Source/cmCTest.cxx | |
parent | 2a0c65485854bb6e6a33a7d5acd99c936adacec6 (diff) | |
download | CMake-5eb4d7590e0e721b56fc735ab6da35d55ad339d0.zip CMake-5eb4d7590e0e721b56fc735ab6da35d55ad339d0.tar.gz CMake-5eb4d7590e0e721b56fc735ab6da35d55ad339d0.tar.bz2 |
Remove some unneeded c_str calls.
Diffstat (limited to 'Source/cmCTest.cxx')
-rw-r--r-- | Source/cmCTest.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/cmCTest.cxx b/Source/cmCTest.cxx index f88f72c..2bf7b77 100644 --- a/Source/cmCTest.cxx +++ b/Source/cmCTest.cxx @@ -1688,7 +1688,7 @@ std::string cmCTest::Base64GzipEncodeFile(std::string file) //---------------------------------------------------------------------- std::string cmCTest::Base64EncodeFile(std::string file) { - long len = cmSystemTools::FileLength(file.c_str()); + long len = cmSystemTools::FileLength(file); cmsys::ifstream ifs(file.c_str(), std::ios::in #ifdef _WIN32 | std::ios::binary @@ -2860,7 +2860,7 @@ void cmCTest::SetConfigType(const char* ct) cmSystemTools::ReplaceString(this->ConfigType, ".\\", ""); std::string confTypeEnv = "CMAKE_CONFIG_TYPE=" + this->ConfigType; - cmSystemTools::PutEnv(confTypeEnv.c_str()); + cmSystemTools::PutEnv(confTypeEnv); } //---------------------------------------------------------------------- |