[nemiver: 4/5] Remove some more explicit UString constructors



commit 32d34de529bab39e2e447806ea266932f6f3eb6a
Author: Jonathon Jongsma <jonathon jongsma collabora co uk>
Date:   Sun Apr 19 21:39:15 2009 -0500

    Remove some more explicit UString constructors
    
    	* src/dbgengine/nmv-i-debugger.h:
    	* src/persp/dbgperspective/nmv-dbg-perspective.cc:
    	The UString(std::string) constructor is not explicit any more so we don't
    	need to explicitly 'cast' things anymore
---
 src/dbgengine/nmv-i-debugger.h                  |    2 +-
 src/persp/dbgperspective/nmv-dbg-perspective.cc |   12 ++++++------
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/src/dbgengine/nmv-i-debugger.h b/src/dbgengine/nmv-i-debugger.h
index b2717a5..35ed562 100644
--- a/src/dbgengine/nmv-i-debugger.h
+++ b/src/dbgengine/nmv-i-debugger.h
@@ -335,7 +335,7 @@ public:
 
         const UString& type () const {return m_type;}
         void type (const UString &a_type) {m_type = a_type;}
-        void type (const string &a_type) {m_type = UString(a_type);}
+        void type (const string &a_type) {m_type = a_type;}
 
         Variable* parent () const {return m_parent;}
         void parent (Variable *a_parent)
diff --git a/src/persp/dbgperspective/nmv-dbg-perspective.cc b/src/persp/dbgperspective/nmv-dbg-perspective.cc
index 864fbe9..49d5d56 100644
--- a/src/persp/dbgperspective/nmv-dbg-perspective.cc
+++ b/src/persp/dbgperspective/nmv-dbg-perspective.cc
@@ -1006,8 +1006,8 @@ struct DBGPerspective::Priv {
                              << it->c_str ()
                              << " to UTF-8");
                     utf8_content =
-                        UString (Glib::convert (a_input, "UTF-8",
-                                                it->c_str ()));
+                        Glib::convert (a_input, "UTF-8",
+                                       it->c_str ());
                 } catch (Glib::Exception &e) {
                     LOG_DD ("tentative encoding conversion failed!");
                     continue;
@@ -1026,9 +1026,9 @@ struct DBGPerspective::Priv {
             for (unsigned int i=0; i < SIZE_OF_SUPPORTED_ENCODINGS; i++) {
                 try {
                     utf8_content =
-                        UString (Glib::convert (a_input,
-                                                "UTF-8",
-                                                SUPPORTED_ENCODINGS[i]));
+                        Glib::convert (a_input,
+                                       "UTF-8",
+                                       SUPPORTED_ENCODINGS[i]);
                 } catch (Glib::Exception &e) {
                     continue;
                 } catch (...) {
@@ -5922,7 +5922,7 @@ DBGPerspective::call_function (const UString &a_call_expr)
             << a_call_expr.raw ()
             << "</Nemiver>"
             << "\n\r";
-        get_terminal ().feed (UString (s.str ()));
+        get_terminal ().feed (s.str ());
 
         // Really hit the debugger now.
         debugger ()->call_function (a_call_expr);



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