zeitgeist team mailing list archive
-
zeitgeist team
-
Mailing list archive
-
Message #03870
[Branch ~zeitgeist/zeitgeist/bluebird] Rev 211: Fix regression in GetEvents introduced fixing array allocation.
------------------------------------------------------------
revno: 211
committer: Siegfried-Angel Gevatter Pujals <siegfried@xxxxxxxxxxxx>
branch nick: bluebird
timestamp: Thu 2011-09-01 18:40:48 +0200
message:
Fix regression in GetEvents introduced fixing array allocation.
modified:
src/engine.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/engine.vala'
--- src/engine.vala 2011-08-30 14:01:07 +0000
+++ src/engine.vala 2011-09-01 16:40:48 +0000
@@ -126,8 +126,11 @@
var results = new GenericArray<Event?> ();
results.length = event_ids.length;
+ int i = 0;
foreach (var id in event_ids)
- results.add (events.lookup (id));
+ {
+ results.set(i++, events.lookup (id));
+ }
return results;
}