[rygel] core: Avoid 'this' before chaining-up to other constructors



commit c2ac4eec4006507f735a97409607d47af41eeedc
Author: Cyrille Chepelov <cyrille chepelov keyconsulting fr>
Date:   Mon Mar 1 14:16:06 2010 +0100

    core: Avoid 'this' before chaining-up to other constructors
    
    Instead of using 'this' keyword (that will segfault as its being used
    before chaining-up to other contstructor) just make copy_str_list()
    static instead.
    
    Signed-off-by: Cyrille Chepelov <cyrille chepelov keyconsulting fr>

 .../tracker/rygel-tracker-selection-query.vala     |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/plugins/tracker/rygel-tracker-selection-query.vala b/src/plugins/tracker/rygel-tracker-selection-query.vala
index 3e9825b..7f562ec 100644
--- a/src/plugins/tracker/rygel-tracker-selection-query.vala
+++ b/src/plugins/tracker/rygel-tracker-selection-query.vala
@@ -57,10 +57,10 @@ public class Rygel.TrackerSelectionQuery : Rygel.TrackerQuery {
     }
 
     public TrackerSelectionQuery.clone (TrackerSelectionQuery query) {
-        this (this.copy_str_list (query.variables),
+        this (copy_str_list (query.variables),
               new TrackerQueryTriplets.clone (query.mandatory),
               new TrackerQueryTriplets.clone (query.optional),
-              this.copy_str_list (query.filters),
+              copy_str_list (query.filters),
               query.order_by,
               query.offset,
               query.max_count);
@@ -111,7 +111,7 @@ public class Rygel.TrackerSelectionQuery : Rygel.TrackerQuery {
         return query;
     }
 
-    private ArrayList<string> copy_str_list (Gee.List<string> str_list) {
+     private static ArrayList<string> copy_str_list (Gee.List<string> str_list) {
         var copy = new ArrayList<string> ();
 
         copy.add_all (str_list);



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