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  df4c1374fb8c4e1a966fc3610c4af0fc13d05fd5 (commit)
       via  7b94a7adb32d1a8966628d2b194cfc5de04d7ecc (commit)
      from  7a2e9e8cb77e7ceeb7a160c8e83ed974c3db10b2 (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=df4c1374fb8c4e1a966fc3610c4af0fc13d05fd5
commit df4c1374fb8c4e1a966fc3610c4af0fc13d05fd5
Merge: 7a2e9e8 7b94a7a
Author:     Daniel Pfeifer <dan...@pfeifer-mail.de>
AuthorDate: Fri Sep 16 17:17:39 2016 -0400
Commit:     CMake Topic Stage <kwro...@kitware.com>
CommitDate: Fri Sep 16 17:17:39 2016 -0400

    Merge topic 'clang-tidy-fixes' into next
    
    7b94a7ad cmCommandArgumentsHelper: simplify boolean expression


https://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7b94a7adb32d1a8966628d2b194cfc5de04d7ecc
commit 7b94a7adb32d1a8966628d2b194cfc5de04d7ecc
Author:     Daniel Pfeifer <dan...@pfeifer-mail.de>
AuthorDate: Fri Sep 16 23:16:54 2016 +0200
Commit:     Daniel Pfeifer <dan...@pfeifer-mail.de>
CommitDate: Fri Sep 16 23:16:54 2016 +0200

    cmCommandArgumentsHelper: simplify boolean expression

diff --git a/Source/cmCommandArgumentsHelper.cxx 
b/Source/cmCommandArgumentsHelper.cxx
index 1345bd5..b8fe365 100644
--- a/Source/cmCommandArgumentsHelper.cxx
+++ b/Source/cmCommandArgumentsHelper.cxx
@@ -57,14 +57,7 @@ bool cmCommandArgument::MayFollow(const cmCommandArgument* 
current) const
   if (this->ArgumentsBeforeEmpty) {
     return true;
   }
-
-  std::set<const cmCommandArgument*>::const_iterator argIt =
-    this->ArgumentsBefore.find(current);
-  if (argIt != this->ArgumentsBefore.end()) {
-    return true;
-  }
-
-  return false;
+  return this->ArgumentsBefore.find(current) != this->ArgumentsBefore.end();
 }
 
 bool cmCommandArgument::KeyMatches(const std::string& key) const

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

Summary of changes:
 Source/cmCommandArgumentsHelper.cxx |    9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)


hooks/post-receive
-- 
CMake
_______________________________________________
Cmake-commits mailing list
Cmake-commits@cmake.org
http://public.kitware.com/mailman/listinfo/cmake-commits

Reply via email to