[Cmake-commits] CMake branch, next, updated. v3.7.1-1692-g22492e4

Daniel Pfeifer daniel at pfeifer-mail.de
Sat Dec 10 12:49:45 EST 2016


This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "CMake".

The branch, next has been updated
       via  22492e41fbc949999575cf126d9f3bde083da9b8 (commit)
       via  172e77380b8b4b012069eadb43b6156c4201e6a0 (commit)
      from  2e29d71c33f54eb84b1fae5bbb3c362b4f994f29 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=22492e41fbc949999575cf126d9f3bde083da9b8
commit 22492e41fbc949999575cf126d9f3bde083da9b8
Merge: 2e29d71 172e773
Author:     Daniel Pfeifer <daniel at pfeifer-mail.de>
AuthorDate: Sat Dec 10 12:49:45 2016 -0500
Commit:     CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Sat Dec 10 12:49:45 2016 -0500

    Merge topic 'clang-tidy' into next
    
    172e7738 fixup! clang-tidy: apply misc-suspicious-string-compare fixes


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=172e77380b8b4b012069eadb43b6156c4201e6a0
commit 172e77380b8b4b012069eadb43b6156c4201e6a0
Author:     Daniel Pfeifer <daniel at pfeifer-mail.de>
AuthorDate: Sat Dec 10 18:49:29 2016 +0100
Commit:     Daniel Pfeifer <daniel at pfeifer-mail.de>
CommitDate: Sat Dec 10 18:49:29 2016 +0100

    fixup! clang-tidy: apply misc-suspicious-string-compare fixes

diff --git a/Source/cmCoreTryCompile.cxx b/Source/cmCoreTryCompile.cxx
index a208509..f12c9e8 100644
--- a/Source/cmCoreTryCompile.cxx
+++ b/Source/cmCoreTryCompile.cxx
@@ -810,9 +810,7 @@ void cmCoreTryCompile::CleanupFiles(const char* binDir)
   for (unsigned long i = 0; i < dir.GetNumberOfFiles(); ++i) {
     const char* fileName = dir.GetFile(i);
     if (strcmp(fileName, ".") != 0 && strcmp(fileName, "..") != 0) {
-      std::pair<std::set<std::string>::iterator, bool> const inserted =
-        deletedFiles.insert(fileName);
-      if (inserted.second) {
+      if (deletedFiles.insert(fileName).second) {
         std::string const fullPath =
           std::string(binDir).append("/").append(fileName);
         if (cmSystemTools::FileIsDirectory(fullPath)) {

-----------------------------------------------------------------------

Summary of changes:
 Source/cmCoreTryCompile.cxx |    4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)


hooks/post-receive
-- 
CMake


More information about the Cmake-commits mailing list