summaryrefslogtreecommitdiffstats
path: root/Source/CTest/cmCTestTestHandler.cxx
diff options
context:
space:
mode:
authorDaniel Pfeifer <daniel@pfeifer-mail.de>2016-12-10 13:53:06 (GMT)
committerBrad King <brad.king@kitware.com>2016-12-12 19:04:13 (GMT)
commita74e6893480e491959e9165106f199a8cd0edd57 (patch)
tree7b4973da863935de096b7ed31223a847f690abc2 /Source/CTest/cmCTestTestHandler.cxx
parentcac529dd495f05dcd24d33dd5fa595ff28eb7a60 (diff)
downloadCMake-a74e6893480e491959e9165106f199a8cd0edd57.zip
CMake-a74e6893480e491959e9165106f199a8cd0edd57.tar.gz
CMake-a74e6893480e491959e9165106f199a8cd0edd57.tar.bz2
clang-tidy: apply readability-redundant-string-init fixes
Diffstat (limited to 'Source/CTest/cmCTestTestHandler.cxx')
-rw-r--r--Source/CTest/cmCTestTestHandler.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/Source/CTest/cmCTestTestHandler.cxx b/Source/CTest/cmCTestTestHandler.cxx
index 68f9a54..4e63654 100644
--- a/Source/CTest/cmCTestTestHandler.cxx
+++ b/Source/CTest/cmCTestTestHandler.cxx
@@ -718,7 +718,7 @@ void cmCTestTestHandler::ComputeTestList()
// Now create a final list of tests to run
int cnt = 0;
inREcnt = 0;
- std::string last_directory = "";
+ std::string last_directory;
ListOfTests finalList;
for (it = this->TestList.begin(); it != this->TestList.end(); it++) {
cnt++;
@@ -1649,7 +1649,7 @@ void cmCTestTestHandler::ExpandTestsToRunInformationForRerunFailed()
int numFiles =
static_cast<int>(cmsys::Directory::GetNumberOfFilesInDirectory(dirName));
std::string pattern = "LastTestsFailed";
- std::string logName = "";
+ std::string logName;
for (int i = 0; i < numFiles; ++i) {
std::string fileName = directory.GetFile(i);