From: Kevin Wasserman Date: Tue, 8 Oct 2013 18:13:32 +0000 (-0400) Subject: More foreach fixup for centos X-Git-Tag: 0.7.1~61 X-Git-Url: http://www.project-moonshot.org/gitweb/?a=commitdiff_plain;ds=sidebyside;h=aef8654dedf581245c99bf8f2b6032c151ea3110;p=moonshot-ui.git More foreach fixup for centos --- diff --git a/src/moonshot-keyring-store.vala b/src/moonshot-keyring-store.vala index b546de6..922186f 100644 --- a/src/moonshot-keyring-store.vala +++ b/src/moonshot-keyring-store.vala @@ -37,12 +37,12 @@ public class KeyringStore : Object, IIdentityCardStore { match.append_string(keyring_store_attribute, keyring_store_version); GLib.List items; GnomeKeyring.find_items_sync(item_type, match, out items); - items.foreach((entry) => { + foreach(unowned GnomeKeyring.Found entry in items) { GnomeKeyring.Result result = GnomeKeyring.item_delete_sync(null, entry.item_id); if (result != GnomeKeyring.Result.OK) { stdout.printf("GnomeKeyring.item_delete_sync() failed. result: %d", result); } - }); + } } private void load_id_cards() {