[folks] Use foreach{} rather than .foreach() in IndividualAggregator.link_personas()
- From: Philip Withnall <pwithnall src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [folks] Use foreach{} rather than .foreach() in IndividualAggregator.link_personas()
- Date: Tue, 21 Sep 2010 09:22:07 +0000 (UTC)
commit 78d808e6771cd2395bca6aa47c3b2f28391e129b
Author: Philip Withnall <philip withnall collabora co uk>
Date: Tue Aug 31 15:19:31 2010 +0100
Use foreach{} rather than .foreach() in IndividualAggregator.link_personas()
folks/individual-aggregator.vala | 8 +++-----
1 files changed, 3 insertions(+), 5 deletions(-)
---
diff --git a/folks/individual-aggregator.vala b/folks/individual-aggregator.vala
index 66bbc49..9a7745c 100644
--- a/folks/individual-aggregator.vala
+++ b/folks/individual-aggregator.vala
@@ -716,12 +716,10 @@ public class Folks.IndividualAggregator : Object
HashTable<string, HashSet<string>> protocols_addrs_set =
new HashTable<string, HashSet<string>> (str_hash, str_equal);
- personas.foreach ((p) =>
+ foreach (unowned Persona persona in personas)
{
- unowned Persona persona = (Persona) p;
-
if (!(persona is IMable))
- return;
+ continue;
((IMable) persona).im_addresses.foreach ((k, v) =>
{
@@ -755,7 +753,7 @@ public class Folks.IndividualAggregator : Object
}
});
});
- });
+ }
Value addresses_value = Value (typeof (HashTable));
addresses_value.set_boxed (protocols_addrs_list);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]