[yast-commit] r48454 - in /trunk/yast2: library/types/src/Integer.ycp yast2.spec.in
Author: aschnell Date: Fri Jun 20 15:34:20 2008 New Revision: 48454 URL: http://svn.opensuse.org/viewcvs/yast?rev=48454&view=rev Log: - use list::reduce Modified: trunk/yast2/library/types/src/Integer.ycp trunk/yast2/yast2.spec.in Modified: trunk/yast2/library/types/src/Integer.ycp URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/library/types/src/Integer.ycp?rev=48454&r1=48453&r2=48454&view=diff ============================================================================== --- trunk/yast2/library/types/src/Integer.ycp (original) +++ trunk/yast2/library/types/src/Integer.ycp Fri Jun 20 15:34:20 2008 @@ -58,8 +58,6 @@ */ global integer Sum(list<integer> values) { - integer sum = 0; - foreach(integer value, values, { sum = sum + value; }); - return sum; + return list::reduce(integer x, integer y, 0, values, { return x + y; }); } } Modified: trunk/yast2/yast2.spec.in URL: http://svn.opensuse.org/viewcvs/yast/trunk/yast2/yast2.spec.in?rev=48454&r1=48453&r2=48454&view=diff ============================================================================== --- trunk/yast2/yast2.spec.in (original) +++ trunk/yast2/yast2.spec.in Fri Jun 20 15:34:20 2008 @@ -11,7 +11,7 @@ PreReq: %fillup_prereq # y2base foo -S (hello) UI -Requires: yast2-core >= 2.16.49 +Requires: yast2-core >= 2.17.1 # Mod_UI Requires: yast2-ycp-ui-bindings >= 2.16.44 -- To unsubscribe, e-mail: yast-commit+unsubscribe@opensuse.org For additional commands, e-mail: yast-commit+help@opensuse.org
participants (1)
-
aschnell@svn.opensuse.org