Mailinglist Archive: yast-commit (1138 mails)

< Previous Next >
[yast-commit] r59307 - in /trunk/ruby-bindings: package/yast2-ruby-bindings.changes src/ruby/Y2RubyTypeConv.cc
  • From: dmacvicar@xxxxxxxxxxxxxxxx
  • Date: Wed, 04 Nov 2009 23:52:43 -0000
  • Message-id: <E1N5ped-0005A3-7P@xxxxxxxxxxxxxxxx>
Author: dmacvicar
Date: Thu Nov 5 00:52:42 2009
New Revision: 59307

URL: http://svn.opensuse.org/viewcvs/yast?rev=59307&view=rev
Log:

revert this change in trunk


Modified:
trunk/ruby-bindings/package/yast2-ruby-bindings.changes
trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc

Modified: trunk/ruby-bindings/package/yast2-ruby-bindings.changes
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/ruby-bindings/package/yast2-ruby-bindings.changes?rev=59307&r1=59306&r2=59307&view=diff
==============================================================================
--- trunk/ruby-bindings/package/yast2-ruby-bindings.changes (original)
+++ trunk/ruby-bindings/package/yast2-ruby-bindings.changes Thu Nov 5 00:52:42
2009
@@ -1,9 +1,4 @@
-------------------------------------------------------------------
-Wed Nov 4 15:23:41 UTC 2009 - dmacvicar@xxxxxxxxxx
-
-- use old style YCPMap iterators for SLE11 GA compatibility
-
--------------------------------------------------------------------
Tue Nov 3 12:43:21 UTC 2009 - dmacvicar@xxxxxxxxxx

- support for nested namespaces (Foo::Bar)

Modified: trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc
URL:
http://svn.opensuse.org/viewcvs/yast/trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc?rev=59307&r1=59306&r2=59307&view=diff
==============================================================================
--- trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc (original)
+++ trunk/ruby-bindings/src/ruby/Y2RubyTypeConv.cc Thu Nov 5 00:52:42 2009
@@ -144,10 +144,10 @@
YCPMap map = ycpval->asMap();
//y2internal("map size %d\n", (int) map.size());

- for (YCPMapIterator it = map->begin (); it != map->end (); ++it)
+ for (YCPMap::const_iterator it = map->begin(); it != map->end(); ++it)
{
- YCPValue key = it.key();
- YCPValue value = it.value();
+ YCPValue key = it->first;
+ YCPValue value = it->second;
rb_hash_aset(rbhash, ycpvalue_2_rbvalue(key), ycpvalue_2_rbvalue(value)
);
}
return rbhash;

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

< Previous Next >
This Thread
  • No further messages