core: Remove redundant string conversions
authorZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Mon, 25 Oct 2010 17:08:17 +0000 (20:08 +0300)
committerZeeshan Ali (Khattak) <zeeshanak@gnome.org>
Tue, 26 Oct 2010 13:38:14 +0000 (16:38 +0300)
src/rygel/rygel-http-server.vala

index e5fcedd..84d452a 100644 (file)
@@ -67,10 +67,7 @@ internal class Rygel.HTTPServer : Rygel.TranscodeManager, Rygel.StateMachine {
 
         var uri = this.create_uri_for_item (item, -1, -1, null);
 
-        item.add_resource (didl_item,
-                           uri.to_string (),
-                           this.get_protocol (),
-                           uri.to_string ());
+        item.add_resource (didl_item, uri, this.get_protocol (), uri);
     }
 
     public bool need_proxy (string uri) {