[nemiver/better-variable-format: 9/10] Return a signal of IDebugger by reference



commit 981d3c7779e1a801fae8ae41949d9086d17f7486
Author: Dodji Seketeli <dodji seketeli org>
Date:   Sat Feb 26 00:35:43 2011 +0100

    Return a signal of IDebugger by reference
    
    	* src/dbgengine/nmv-i-debugger.h
    	(IDebugger::variable_dereferenced_signal): Return the value by
    	reference.
    	* src/dbgengine/nmv-gdb-engine.h
    	(GDBEngine::variable_dereferenced_signal): Likewise.
    	* src/dbgengine/nmv-gdb-engine.cc
    	(GDBEngine::variable_dereferenced_signal): Likewise.

 src/dbgengine/nmv-gdb-engine.cc |    2 +-
 src/dbgengine/nmv-gdb-engine.h  |    2 +-
 src/dbgengine/nmv-i-debugger.h  |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/src/dbgengine/nmv-gdb-engine.cc b/src/dbgengine/nmv-gdb-engine.cc
index 5a58416..9b4876b 100644
--- a/src/dbgengine/nmv-gdb-engine.cc
+++ b/src/dbgengine/nmv-gdb-engine.cc
@@ -3242,7 +3242,7 @@ GDBEngine::variable_type_set_signal () const
     return m_priv->variable_type_set_signal;
 }
 
-sigc::signal<void, const IDebugger::VariableSafePtr, const UString&>
+sigc::signal<void, const IDebugger::VariableSafePtr, const UString&>&
 GDBEngine::variable_dereferenced_signal () const
 {
     return m_priv->variable_dereferenced_signal;
diff --git a/src/dbgengine/nmv-gdb-engine.h b/src/dbgengine/nmv-gdb-engine.h
index 14de51c..3ff7206 100644
--- a/src/dbgengine/nmv-gdb-engine.h
+++ b/src/dbgengine/nmv-gdb-engine.h
@@ -143,7 +143,7 @@ public:
     sigc::signal<void, const VariableSafePtr, const UString&>&
                                     variable_type_set_signal () const;
 
-    sigc::signal<void, const VariableSafePtr, const UString&>
+    sigc::signal<void, const VariableSafePtr, const UString&>&
                                       variable_dereferenced_signal () const;
 
     sigc::signal<void, int, const UString&>& got_target_info_signal () const ;
diff --git a/src/dbgengine/nmv-i-debugger.h b/src/dbgengine/nmv-i-debugger.h
index d40839e..2b5a845 100644
--- a/src/dbgengine/nmv-i-debugger.h
+++ b/src/dbgengine/nmv-i-debugger.h
@@ -935,7 +935,7 @@ public:
     /// Emitted as a the result of the IDebugger::dereference_variable is call.
     virtual sigc::signal<void,
                          const VariableSafePtr/*the variable we derefed*/,
-                         const UString&/*cookie*/>
+                         const UString&/*cookie*/>&
                                       variable_dereferenced_signal () const=0;
 
     virtual sigc::signal<void, const vector<UString>&, const UString&>&



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