[gnome-commander] do not cast std::string to c_str() in gnome_cmd_con_ftp_new ()



commit a763154bdaa03fbb5605c1cfbeedcc5a89ba27a3
Author: Piotr Eljasiak <epiotr src gnome org>
Date:   Wed Apr 27 20:48:54 2011 +0200

    do not cast std::string to c_str() in gnome_cmd_con_ftp_new ()

 src/gnome-cmd-data.cc |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/src/gnome-cmd-data.cc b/src/gnome-cmd-data.cc
index 522e791..0cba01f 100644
--- a/src/gnome-cmd-data.cc
+++ b/src/gnome-cmd-data.cc
@@ -303,9 +303,7 @@ inline gboolean load_connections (const gchar *fname)
                             g_warning ("%s: ignored duplicate entry: %s", path, alias);
                         else
                         {
-                            const gchar *text_uri = a[2].c_str();
-
-                            server = gnome_cmd_con_ftp_new (alias, text_uri);
+                            server = gnome_cmd_con_ftp_new (alias, a[2]);
 
                             if (!server)
                             {



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