[blam] ItemStore: Pass the items to the constructor
- From: Carlos Martín Nieto <cmartin src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [blam] ItemStore: Pass the items to the constructor
- Date: Sun, 10 Oct 2010 13:59:47 +0000 (UTC)
commit 8b98b67a808c8f0dcef71ca1637ffb2c12caa0c1
Author: Carlos MartÃn Nieto <carlos cmartin tk>
Date: Wed Sep 29 20:15:17 2010 +0100
ItemStore: Pass the items to the constructor
src/ItemStore.cs | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
---
diff --git a/src/ItemStore.cs b/src/ItemStore.cs
index cedfd33..2980c6f 100644
--- a/src/ItemStore.cs
+++ b/src/ItemStore.cs
@@ -77,10 +77,9 @@ namespace Imendio.Blam
item.WriteExtensions();
}
XmlWriter writer = XmlWriter.Create(itemfile);
- SyndicationFeed sf = new SyndicationFeed();
Item[] items = new Item[instance.items.Count];
instance.items.Values.CopyTo(items, 0);
- sf.Items = items;
+ SyndicationFeed sf = new SyndicationFeed(items);
SyndicationFeedFormatter fmtr = new Atom10FeedFormatter(sf);
fmtr.WriteTo(writer);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]