[rygel] media-export: Vala bug 568972 is fixed since 0.7.9



commit af22af8262a4a96f0142dbe628bfd6bfd2741c35
Author: Jens Georg <mail jensge org>
Date:   Sat Mar 27 17:54:46 2010 +0100

    media-export: Vala bug 568972 is fixed since 0.7.9

 .../rygel-media-export-root-container.vala         |    9 +--------
 1 files changed, 1 insertions(+), 8 deletions(-)
---
diff --git a/src/plugins/media-export/rygel-media-export-root-container.vala b/src/plugins/media-export/rygel-media-export-root-container.vala
index d4db578..fcb465e 100644
--- a/src/plugins/media-export/rygel-media-export-root-container.vala
+++ b/src/plugins/media-export/rygel-media-export-root-container.vala
@@ -227,16 +227,9 @@ public class Rygel.MediaExportRootContainer : Rygel.MediaDBContainer {
 
 
     public string[] get_dynamic_uris () {
-        string[] result = new string[0];
         var dynamic_uris = this.dynamic_elements.get_uris ();
 
-        // copy by hand, to_array does not work due to
-        // vala bug 568972
-        foreach (string uri in dynamic_uris) {
-            result += uri;
-        }
-
-        return result;
+        return dynamic_uris.to_array ();
     }
 
 



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