[smuxi/experiments/sqlite: 10/27] [Engine] Implemented GitMessageBuffer.GetEnumerator()
- From: Mirco M. M. Bauer <mmmbauer src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [smuxi/experiments/sqlite: 10/27] [Engine] Implemented GitMessageBuffer.GetEnumerator()
- Date: Sun, 23 Feb 2014 17:07:13 +0000 (UTC)
commit 640a33a902b3713ffc2de48c2e3bdaa105175442
Author: Mirco Bauer <meebey meebey net>
Date: Sun Feb 26 12:00:17 2012 +0100
[Engine] Implemented GitMessageBuffer.GetEnumerator()
src/Engine/MessageBuffers/GitMessageBuffer.cs | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/Engine/MessageBuffers/GitMessageBuffer.cs b/src/Engine/MessageBuffers/GitMessageBuffer.cs
index 547208f..f0bf5fd 100644
--- a/src/Engine/MessageBuffers/GitMessageBuffer.cs
+++ b/src/Engine/MessageBuffers/GitMessageBuffer.cs
@@ -185,9 +185,11 @@ namespace Smuxi.Engine
throw new NotImplementedException ();
}
- public override System.Collections.Generic.IEnumerator<MessageModel> GetEnumerator ()
+ public override IEnumerator<MessageModel> GetEnumerator()
{
- throw new NotImplementedException ();
+ foreach (var entry in Repository.Index) {
+ yield return GetMessage(entry.Id);
+ }
}
public override int IndexOf (MessageModel item)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]