Mailinglist Archive: yast-commit (819 mails)

< Previous Next >
[yast-commit] r54421 - /trunk/core/libycp/src/YCPBuiltinList.cc
  • From: aschnell@xxxxxxxxxxxxxxxx
  • Date: Wed, 07 Jan 2009 11:47:32 -0000
  • Message-id: <E1LKWsm-0004w5-Ov@xxxxxxxxxxxxxxxx>
Author: aschnell
Date: Wed Jan 7 12:47:32 2009
New Revision: 54421

URL: http://svn.opensuse.org/viewcvs/yast?rev=54421&view=rev
Log:
- add elements to set in constructor

Modified:
trunk/core/libycp/src/YCPBuiltinList.cc

Modified: trunk/core/libycp/src/YCPBuiltinList.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/core/libycp/src/YCPBuiltinList.cc?rev=54421&r1=54420&r2=54421&view=diff
==============================================================================
--- trunk/core/libycp/src/YCPBuiltinList.cc (original)
+++ trunk/core/libycp/src/YCPBuiltinList.cc Wed Jan 7 12:47:32 2009
@@ -622,12 +622,7 @@
return YCPNull ();
}

- set <YCPValue, ycpless> newset;
-
- for (int i = 0; i < list->size (); i++)
- {
- newset.insert (list->value (i));
- }
+ set<YCPValue, ycpless> newset(list->begin(), list->end());

YCPList setlist;
for (set <YCPValue, ycpless>::const_iterator it = newset.begin ();

--
To unsubscribe, e-mail: yast-commit+unsubscribe@xxxxxxxxxxxx
For additional commands, e-mail: yast-commit+help@xxxxxxxxxxxx

< Previous Next >
This Thread
  • No further messages