projects
/
moonshot-ui.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
224f3bb
)
Fix foreach syntax for compatibility w older vala
author
Kevin Wasserman
<krwasserman@hotmail.com>
Tue, 8 Oct 2013 17:20:15 +0000
(13:20 -0400)
committer
Sam Hartman
<hartmans@painless-security.com>
Tue, 8 Oct 2013 17:30:16 +0000
(13:30 -0400)
src/moonshot-keyring-store.vala
patch
|
blob
|
history
diff --git
a/src/moonshot-keyring-store.vala
b/src/moonshot-keyring-store.vala
index
78c7af2
..
b546de6
100644
(file)
--- a/
src/moonshot-keyring-store.vala
+++ b/
src/moonshot-keyring-store.vala
@@
-52,7
+52,7
@@
public class KeyringStore : Object, IIdentityCardStore {
match.append_string(keyring_store_attribute, keyring_store_version);
GLib.List<GnomeKeyring.Found> items;
GnomeKeyring.find_items_sync(item_type, match, out items);
-
items.foreach((entry) =>
{
+
foreach(unowned GnomeKeyring.Found entry in items)
{
IdCard id_card = new IdCard ();
int i;
int rules_patterns_index = -1;
@@
-110,7
+110,7
@@
public class KeyringStore : Object, IIdentityCardStore {
else
id_card.password = null;
id_card_list.add(id_card);
- }
);
+ }
}
public void store_id_cards () {