[geary/wip/734757-msgset] Used unowned slice (minor optimization)



commit 9efddfcd63d8c4be2a4d81c95c46bbd5c03fcd12
Author: Jim Nelson <jim yorba org>
Date:   Tue Aug 19 13:03:18 2014 -0700

    Used unowned slice (minor optimization)

 src/engine/imap/command/imap-message-set.vala |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/engine/imap/command/imap-message-set.vala b/src/engine/imap/command/imap-message-set.vala
index 759f372..41eced4 100644
--- a/src/engine/imap/command/imap-message-set.vala
+++ b/src/engine/imap/command/imap-message-set.vala
@@ -139,7 +139,7 @@ public class Geary.Imap.MessageSet : BaseObject {
                 break;
             
             int end_index = (start_index + MAX_SPARSE_VALUES_PER_SET).clamp(0, sorted.length);
-            int64[] slice = sorted[start_index:end_index];
+            unowned int64[] slice = sorted[start_index:end_index];
             
             debug("MessageSet.build_sparse: sorted=%d start:end=%d:%d slice=%d",
                 sorted.length, start_index, end_index, slice.length);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]