[rygel/gnome-2-32] core: Remove redundant string conversions



commit e5dcdca25ed865f451a30421b66a146389c53b3f
Author: Zeeshan Ali (Khattak) <zeeshanak gnome org>
Date:   Mon Oct 25 20:08:17 2010 +0300

    core: Remove redundant string conversions

 src/rygel/rygel-http-server.vala |    5 +----
 1 files changed, 1 insertions(+), 4 deletions(-)
---
diff --git a/src/rygel/rygel-http-server.vala b/src/rygel/rygel-http-server.vala
index e5fcedd..84d452a 100644
--- a/src/rygel/rygel-http-server.vala
+++ b/src/rygel/rygel-http-server.vala
@@ -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) {



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