[PATCH 3/4] constify IDebugger::Breakpoint::is_pending



Hello,

I noticed that the IDebugger::Breakpoint::is_pending function is not
const.  It's annoying because we cannot call it on instances of
IDebugger::Breakpoint that are const.

Changed below, applied to master and gtk2-branch.

From: Dodji Seketeli <dodji seketeli org>
Date: Sun, 4 Sep 2011 21:38:01 +0200
Subject: [PATCH 3/4] constify IDebugger::Breakpoint::is_pending

	* src/dbgengine/nmv-i-debugger.h
	(IDebugger::Breakpoint::is_pending): Make this function const.
---
 src/dbgengine/nmv-i-debugger.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/dbgengine/nmv-i-debugger.h b/src/dbgengine/nmv-i-debugger.h
index 01ef219..e9c9057 100644
--- a/src/dbgengine/nmv-i-debugger.h
+++ b/src/dbgengine/nmv-i-debugger.h
@@ -160,7 +160,7 @@ public:
         bool is_write_watchpoint () const {return m_is_write_watchpoint;}
         void is_write_watchpoint (bool f) {m_is_write_watchpoint = f;}
 
-        bool is_pending ()
+        bool is_pending () const
         {
             if (m_address == "<PENDING>") {
                 return true;
-- 
		Dodji


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