[Cmake-commits] CMake branch, next, updated. v2.8.11-2144-g7d9a653
Brad King
brad.king at kitware.com
Wed May 22 12:54:39 EDT 2013
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 7d9a6530d7ad7140263f02b773b30f50b82cefa6 (commit)
via eca523fbd40487a36f41a0e3088238770131b7ce (commit)
from 661059dd0ed4ae3017c08244bdd62091afc2b808 (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 -----------------------------------------------------------------
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=7d9a6530d7ad7140263f02b773b30f50b82cefa6
commit 7d9a6530d7ad7140263f02b773b30f50b82cefa6
Merge: 661059d eca523f
Author: Brad King <brad.king at kitware.com>
AuthorDate: Wed May 22 12:54:35 2013 -0400
Commit: CMake Topic Stage <kwrobot at kitware.com>
CommitDate: Wed May 22 12:54:35 2013 -0400
Merge topic 'wizard-cleanup' into next
eca523f wizard: simplify control flow
http://cmake.org/gitweb?p=cmake.git;a=commitdiff;h=eca523fbd40487a36f41a0e3088238770131b7ce
commit eca523fbd40487a36f41a0e3088238770131b7ce
Author: Rolf Eike Beer <eike at sf-mail.de>
AuthorDate: Tue May 21 23:36:37 2013 +0200
Commit: Brad King <brad.king at kitware.com>
CommitDate: Wed May 22 12:52:12 2013 -0400
wizard: simplify control flow
Checking if a byte is 0 before checking it for something else doesn't do
anything useful. Also one can be sure that it can't be anything wanted
if the value was set to 0 immediately before.
diff --git a/Source/cmakewizard.cxx b/Source/cmakewizard.cxx
index 8ac55d9..bac403a 100644
--- a/Source/cmakewizard.cxx
+++ b/Source/cmakewizard.cxx
@@ -71,12 +71,9 @@ bool cmakewizard::AskAdvanced()
{
buffer[0] = 0;
}
- if(buffer[0])
+ else if(buffer[0] == 'y' || buffer[0] == 'Y')
{
- if(buffer[0] == 'y' || buffer[0] == 'Y')
- {
- return true;
- }
+ return true;
}
return false;
}
-----------------------------------------------------------------------
Summary of changes:
hooks/post-receive
--
CMake
More information about the Cmake-commits
mailing list