From 7b7b88b31580a5740fbb8b2a3f2071515c16922f Mon Sep 17 00:00:00 2001 From: Hylke Bons Date: Wed, 19 May 2010 10:11:53 +0100 Subject: [PATCH] don't copy array --- SparkleShare/SparkleWindow.cs | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SparkleShare/SparkleWindow.cs b/SparkleShare/SparkleWindow.cs index 459a810d..30347e4d 100644 --- a/SparkleShare/SparkleWindow.cs +++ b/SparkleShare/SparkleWindow.cs @@ -135,12 +135,11 @@ namespace SparkleShare { // Sort by time and get the last 25 Array.Sort (Lines); Array.Reverse (Lines); - string [] LastTwentyFive = new string [25]; - Array.Copy (Lines, 0, LastTwentyFive, 0, 25); TreeIter Iter; - foreach (string Line in LastTwentyFive) { + for (int i = 0; i < 25; i++) { + string Line = Lines [i]; if (Line.Contains (SelectedEmail)) { // Look for the snowman!