nemiver r704 - in trunk: . src/persp/dbgperspective



Author: dodji
Date: Thu Jan 17 22:08:42 2008
New Revision: 704
URL: http://svn.gnome.org/viewvc/nemiver?rev=704&view=rev

Log:
[global vars inspector dialog] don't pass smart pointers by reference.


Modified:
   trunk/ChangeLog
   trunk/src/persp/dbgperspective/nmv-global-vars-inspector-dialog.cc

Modified: trunk/src/persp/dbgperspective/nmv-global-vars-inspector-dialog.cc
==============================================================================
--- trunk/src/persp/dbgperspective/nmv-global-vars-inspector-dialog.cc	(original)
+++ trunk/src/persp/dbgperspective/nmv-global-vars-inspector-dialog.cc	Thu Jan 17 22:08:42 2008
@@ -150,23 +150,28 @@
 
         THROW_IF_FAIL (debugger) ;
         debugger->global_variables_listed_signal ().connect
-            (sigc::mem_fun (*this, &Priv::on_global_variables_listed_signal)) ;
+            (sigc::mem_fun (*this,
+                            &Priv::on_global_variables_listed_signal)) ;
     }
 
     void init_graphical_signals ()
     {
         THROW_IF_FAIL (tree_view) ;
-        Glib::RefPtr<Gtk::TreeSelection> selection = tree_view->get_selection () ;
+        Glib::RefPtr<Gtk::TreeSelection> selection =
+                                                tree_view->get_selection () ;
         THROW_IF_FAIL (selection) ;
         selection->signal_changed ().connect
-            (sigc::mem_fun (*this, &Priv::on_tree_view_selection_changed_signal));
+            (sigc::mem_fun (*this,
+                            &Priv::on_tree_view_selection_changed_signal));
         tree_view->signal_row_expanded ().connect
             (sigc::mem_fun (*this, &Priv::on_tree_view_row_expanded_signal)) ;
         tree_view->signal_row_activated ().connect
-            (sigc::mem_fun (*this, &Priv::on_tree_view_row_activated_signal)) ;
+            (sigc::mem_fun (*this,
+                            &Priv::on_tree_view_row_activated_signal)) ;
     }
 
-    void set_global_variables (const std::list<IDebugger::VariableSafePtr> &a_vars)
+    void set_global_variables
+            (const std::list<IDebugger::VariableSafePtr> &a_vars)
     {
         LOG_FUNCTION_SCOPE_NORMAL_DD ;
 
@@ -179,21 +184,27 @@
         }
     }
 
-    void append_a_global_variable (const IDebugger::VariableSafePtr &a_var)
+    void append_a_global_variable (const IDebugger::VariableSafePtr a_var)
     {
         LOG_FUNCTION_SCOPE_NORMAL_DD ;
 
-        THROW_IF_FAIL (tree_view && tree_store) ;
+        THROW_IF_FAIL (tree_view && tree_store && a_var) ;
+
+        LOG_DD ("going to append variable '"
+                << a_var->name ()
+                << "'");
 
         Gtk::TreeModel::iterator iter;
-        vutil::append_a_variable (a_var, static_cast<Gtk::TreeView&>(*tree_view),
-                Glib::RefPtr<Gtk::TreeStore>::cast_static(tree_store),
-                iter /* no parent */,
-                iter /* result iter */) ;
+        typedef Glib::RefPtr<Gtk::TreeStore> TreeStoreRefPtr;
+        vutil::append_a_variable (a_var,
+                                  static_cast<Gtk::TreeView&> (*tree_view),
+                                  TreeStoreRefPtr::cast_static (tree_store),
+                                  iter /* no parent */,
+                                  iter /* result iter */) ;
         tree_view->expand_row (tree_store->get_path (iter), false) ;
     }
 
-    void update_a_global_variable (const IDebugger::VariableSafePtr &a_var)
+    void update_a_global_variable (const IDebugger::VariableSafePtr a_var)
     {
         LOG_FUNCTION_SCOPE_NORMAL_DD ;
 
@@ -207,8 +218,8 @@
     //<debugger signal handlers>
     //****************************
     void on_global_variables_listed_signal
-                                (const list<IDebugger::VariableSafePtr> &a_vars,
-                                 const UString &a_cookie)
+                            (const list<IDebugger::VariableSafePtr> a_vars,
+                             const UString &a_cookie)
     {
         LOG_FUNCTION_SCOPE_NORMAL_DD ;
 



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