[nemiver/varobjs-support] Pass data to IDebugger::list_changed_variables by reference
- From: Dodji Seketeli <dodji src gnome org>
- To: svn-commits-list gnome org
- Subject: [nemiver/varobjs-support] Pass data to IDebugger::list_changed_variables by reference
- Date: Sun, 12 Apr 2009 16:51:10 -0400 (EDT)
commit 35602642192f07a3e8bf01700644fab6138330d5
Author: Dodji Seketeli <dodji redhat com>
Date: Sun Apr 12 21:14:39 2009 +0200
Pass data to IDebugger::list_changed_variables by reference
* src/dbgengine/nmv-i-debugger.h (IDebugger::list_changed_variables):
Pass the list of variables (in the slot) by reference.
* src/dbgengine/nmv-gdb-engine.[h|cc]:
GDBEngine::list_changed_variables): 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 c0b9208..3068d02 100644
--- a/src/dbgengine/nmv-gdb-engine.cc
+++ b/src/dbgengine/nmv-gdb-engine.cc
@@ -4166,7 +4166,7 @@ GDBEngine::list_changed_variables (VariableSafePtr a_var,
void
GDBEngine::list_changed_variables
(VariableSafePtr a_var,
- const sigc::slot<void, const list<VariableSafePtr> > &a_slot)
+ const sigc::slot<void, const list<VariableSafePtr>& > &a_slot)
{
THROW_IF_FAIL (a_var);
THROW_IF_FAIL (!a_var->internal_name ().empty ());
diff --git a/src/dbgengine/nmv-gdb-engine.h b/src/dbgengine/nmv-gdb-engine.h
index 0f1762d..4f0abd2 100644
--- a/src/dbgengine/nmv-gdb-engine.h
+++ b/src/dbgengine/nmv-gdb-engine.h
@@ -443,7 +443,7 @@ public:
void list_changed_variables
(VariableSafePtr a_root,
- const sigc::slot<void, const list<VariableSafePtr> > &a_slot);
+ const sigc::slot<void, const list<VariableSafePtr>& > &a_slot);
};//end class GDBEngine
NEMIVER_END_NAMESPACE (nemiver)
diff --git a/src/dbgengine/nmv-i-debugger.h b/src/dbgengine/nmv-i-debugger.h
index c32ea64..315bd96 100644
--- a/src/dbgengine/nmv-i-debugger.h
+++ b/src/dbgengine/nmv-i-debugger.h
@@ -1034,7 +1034,7 @@ public:
const UString &a_cookie) = 0;
virtual void list_changed_variables
(VariableSafePtr a_root,
- const sigc::slot<void, const VariableList> &a_slot) = 0;
+ const sigc::slot<void, const VariableList&> &a_slot) = 0;
};//end IDebugger
NEMIVER_END_NAMESPACE (nemiver)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]