← Back to team overview

zeitgeist team mailing list archive

[Branch ~zeitgeist/zeitgeist/bluebird] Rev 274: datamodel: style fixes

 

------------------------------------------------------------
revno: 274
committer: Siegfried-Angel Gevatter Pujals <siegfried@xxxxxxxxxxxx>
branch nick: bluebird
timestamp: Sun 2011-09-25 14:13:01 +0200
message:
  datamodel: style fixes
modified:
  src/datamodel.vala


--
lp:~zeitgeist/zeitgeist/bluebird
https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird

Your team Zeitgeist Framework Team is subscribed to branch lp:~zeitgeist/zeitgeist/bluebird.
To unsubscribe from this branch go to https://code.launchpad.net/~zeitgeist/zeitgeist/bluebird/+edit-subscription
=== modified file 'src/datamodel.vala'
--- src/datamodel.vala	2011-09-18 12:07:35 +0000
+++ src/datamodel.vala	2011-09-25 12:13:01 +0000
@@ -311,36 +311,36 @@
         }
 
         public Event.from_variant (Variant event_variant) {
-            assert (event_variant.get_type_string () == "(" + 
+            assert (event_variant.get_type_string () == "(" +
                 Utils.SIG_EVENT + ")");
 
-            VariantIter iter = event_variant.iterator();
+            VariantIter iter = event_variant.iterator ();
 
-            assert (iter.n_children() == 3);
-            VariantIter event_array = iter.next_value().iterator();
-            VariantIter subjects_array = iter.next_value().iterator();
+            assert (iter.n_children () == 3);
+            VariantIter event_array = iter.next_value ().iterator ();
+            VariantIter subjects_array = iter.next_value ().iterator ();
             Variant payload_variant = iter.next_value ();
 
             var event_props = event_array.n_children ();
             assert (event_props >= 5);
-            id = (uint32) uint64.parse (event_array.next_value().get_string ());
-            var str_timestamp = event_array.next_value().get_string ();
+            id = (uint32) uint64.parse (event_array.next_value ().get_string ());
+            var str_timestamp = event_array.next_value ().get_string ();
             if (str_timestamp == "")
                 timestamp = Timestamp.now ();
             else
                 timestamp = int64.parse (str_timestamp);
-            interpretation = event_array.next_value().get_string ();
-            manifestation = event_array.next_value().get_string ();
-            actor = event_array.next_value().get_string ();
+            interpretation = event_array.next_value ().get_string ();
+            manifestation = event_array.next_value ().get_string ();
+            actor = event_array.next_value ().get_string ();
             // let's keep this compatible with older clients
             if (event_props >= 6)
-                origin = event_array.next_value().get_string ();
+                origin = event_array.next_value ().get_string ();
             else
                 origin = "";
 
-            for (int i = 0; i < subjects_array.n_children(); ++i) {
-                Variant subject_variant = subjects_array.next_value();
-                subjects.add(new Subject.from_variant(subject_variant));
+            for (int i = 0; i < subjects_array.n_children (); ++i) {
+                Variant subject_variant = subjects_array.next_value ();
+                subjects.add (new Subject.from_variant (subject_variant));
             }
 
             // Parse payload...