[nemiver/varobjs-support] Make IDebugger::Variable non-copyable



commit 44c253df3e06f473ab8c55e2b0f25eb5e6fa5a09
Author: Dodji Seketeli <dodji redhat com>
Date:   Sat Apr 18 19:23:16 2009 +0200

    Make IDebugger::Variable non-copyable
    
    	* src/dbgengine/nmv-i-debugger.h:
    	(IDebugger::Variable): declare the proper constructors and
    	operators of the class private.
---
 src/dbgengine/nmv-i-debugger.h |    7 +++++++
 1 files changed, 7 insertions(+), 0 deletions(-)

diff --git a/src/dbgengine/nmv-i-debugger.h b/src/dbgengine/nmv-i-debugger.h
index 03abdc0..7cb18af 100644
--- a/src/dbgengine/nmv-i-debugger.h
+++ b/src/dbgengine/nmv-i-debugger.h
@@ -279,6 +279,13 @@ public:
     typedef SafePtr<Variable, ObjectRef, ObjectUnref> VariableSafePtr;
     typedef list<VariableSafePtr> VariableList;
     class Variable : public Object {
+        // non copyable.
+        Variable (const Variable &);
+        Variable& operator= (const Variable &);
+
+        bool operator == (Variable &a_other) const;
+        bool operator == (Variable &a_other);
+
         VariableList m_members;
         // If this variable was created with a backend counterpart
         // (e.g: backend side variable objects in GDB), then this



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