[tracker] libtracker-bus: Fix statistics with Vala 0.24+



commit 82bf05dc5cba78d30f8296e58cd76ffaf4ebf1b9
Author: Jürg Billeter <j bitron ch>
Date:   Tue Sep 2 17:32:13 2014 +0200

    libtracker-bus: Fix statistics with Vala 0.24+

 src/libtracker-bus/tracker-bus.vala |   12 ++++++++----
 1 files changed, 8 insertions(+), 4 deletions(-)
---
diff --git a/src/libtracker-bus/tracker-bus.vala b/src/libtracker-bus/tracker-bus.vala
index b0f07e2..2f1bf14 100644
--- a/src/libtracker-bus/tracker-bus.vala
+++ b/src/libtracker-bus/tracker-bus.vala
@@ -300,9 +300,11 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
                types[0] = Sparql.ValueType.STRING;
                types[1] = Sparql.ValueType.INTEGER;
 
+               int rows = results.length[0];
+               int cols = results.length[1];
                return new Tracker.Bus.ArrayCursor ((owned) results,
-                                                   results.length[0],
-                                                   results.length[1],
+                                                   rows,
+                                                   cols,
                                                    var_names,
                                                    types);
        }
@@ -322,9 +324,11 @@ public class Tracker.Bus.Connection : Tracker.Sparql.Connection {
                types[0] = Sparql.ValueType.STRING;
                types[1] = Sparql.ValueType.INTEGER;
 
+               int rows = results.length[0];
+               int cols = results.length[1];
                return new Tracker.Bus.ArrayCursor ((owned) results,
-                                                   results.length[0],
-                                                   results.length[1],
+                                                   rows,
+                                                   cols,
                                                    var_names,
                                                    types);
        }


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