[rygel] tests: Avoid shadowed member variables.



commit 1c37dbb02003a401e048562260053b513fdc790e
Author: Murray Cumming <murrayc murrayc com>
Date:   Thu Dec 6 14:50:12 2012 +0100

    tests: Avoid shadowed member variables.

 tests/rygel-http-get-test.vala |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/tests/rygel-http-get-test.vala b/tests/rygel-http-get-test.vala
index 5a8e5bc..961c0bb 100644
--- a/tests/rygel-http-get-test.vala
+++ b/tests/rygel-http-get-test.vala
@@ -379,8 +379,6 @@ internal class Rygel.HTTPPlaylistHandler : Rygel.HTTPGetHandler {
 
 public abstract class Rygel.MediaItem : Rygel.MediaObject {
     public long size = 1024;
-    public ArrayList<Subtitle> subtitles = new ArrayList<Subtitle> ();
-    public ArrayList<Thumbnail> thumbnails = new ArrayList<Thumbnail> ();
     public ArrayList<string> uris = new ArrayList<string> ();
 
     public bool place_holder = false;
@@ -442,7 +440,7 @@ private class Rygel.VideoItem : AudioItem, VisualItem {
         protected set {}
     }
 
-    public ArrayList<Subtitle> subtitles;
+    public ArrayList<Subtitle> subtitles = new ArrayList<Subtitle> ();
 }
 
 private class Rygel.MusicItem : AudioItem {



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