[nemiver/console] Return reference instead of copy of a signal



commit 05ce881c955f3938d371800a4e055915431795d3
Author: Fabien Parent <parent f gmail com>
Date:   Fri Mar 2 23:36:12 2012 +0100

    Return reference instead of copy of a signal

 src/dbgengine/nmv-dbg-console.cc |    2 +-
 src/dbgengine/nmv-dbg-console.h  |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/dbgengine/nmv-dbg-console.cc b/src/dbgengine/nmv-dbg-console.cc
index 560dc73..3268262 100644
--- a/src/dbgengine/nmv-dbg-console.cc
+++ b/src/dbgengine/nmv-dbg-console.cc
@@ -760,7 +760,7 @@ DBGConsole::~DBGConsole ()
 {
 }
 
-sigc::signal<void, UString>
+sigc::signal<void, UString>&
 DBGConsole::file_opened_signal () const
 {
     THROW_IF_FAIL (m_priv);
diff --git a/src/dbgengine/nmv-dbg-console.h b/src/dbgengine/nmv-dbg-console.h
index d2a8b6b..d9cc6c7 100644
--- a/src/dbgengine/nmv-dbg-console.h
+++ b/src/dbgengine/nmv-dbg-console.h
@@ -49,7 +49,7 @@ public:
     void current_file_path (const UString &a_file_path);
     const UString& current_file_path () const;
 
-    sigc::signal<void, UString> file_opened_signal () const;
+    sigc::signal<void, UString>& file_opened_signal () const;
 };
 
 NEMIVER_END_NAMESPACE(nemiver)



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