diff options
author | Daniel Pfeifer <daniel@pfeifer-mail.de> | 2016-12-10 13:53:06 (GMT) |
---|---|---|
committer | Brad King <brad.king@kitware.com> | 2016-12-12 19:04:13 (GMT) |
commit | a74e6893480e491959e9165106f199a8cd0edd57 (patch) | |
tree | 7b4973da863935de096b7ed31223a847f690abc2 /Source/CTest/cmCTestSubmitHandler.cxx | |
parent | cac529dd495f05dcd24d33dd5fa595ff28eb7a60 (diff) | |
download | CMake-a74e6893480e491959e9165106f199a8cd0edd57.zip CMake-a74e6893480e491959e9165106f199a8cd0edd57.tar.gz CMake-a74e6893480e491959e9165106f199a8cd0edd57.tar.bz2 |
clang-tidy: apply readability-redundant-string-init fixes
Diffstat (limited to 'Source/CTest/cmCTestSubmitHandler.cxx')
-rw-r--r-- | Source/CTest/cmCTestSubmitHandler.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Source/CTest/cmCTestSubmitHandler.cxx b/Source/CTest/cmCTestSubmitHandler.cxx index 0f13c1e..0a6bc33 100644 --- a/Source/CTest/cmCTestSubmitHandler.cxx +++ b/Source/CTest/cmCTestSubmitHandler.cxx @@ -388,7 +388,7 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(const std::string& localprefix, *this->LogFile << "\tUpload file: " << local_file << " to " << remote_file << std::endl; - std::string ofile = ""; + std::string ofile; for (kk = 0; kk < remote_file.size(); kk++) { char c = remote_file[kk]; char hexCh[4] = { 0, 0, 0, 0 }; @@ -582,7 +582,7 @@ bool cmCTestSubmitHandler::SubmitUsingHTTP(const std::string& localprefix, void cmCTestSubmitHandler::ParseResponse( cmCTestSubmitHandlerVectorOfChar chunk) { - std::string output = ""; + std::string output; output.append(chunk.begin(), chunk.end()); if (output.find("<cdash") != output.npos) { @@ -662,7 +662,7 @@ bool cmCTestSubmitHandler::TriggerUsingHTTP(const std::set<std::string>& files, ::curl_easy_setopt(curl, CURLOPT_DEBUGDATA, (void*)&chunkDebug); std::string rfile = remoteprefix + cmSystemTools::GetFilenameName(*file); - std::string ofile = ""; + std::string ofile; std::string::iterator kk; for (kk = rfile.begin(); kk < rfile.end(); ++kk) { char c = *kk; |