[Lldb-commits] [lldb] r205790 - This function should be const.
Jim Ingham
jingham at apple.com
Tue Apr 8 13:24:45 PDT 2014
Author: jingham
Date: Tue Apr 8 15:24:45 2014
New Revision: 205790
URL: http://llvm.org/viewvc/llvm-project?rev=205790&view=rev
Log:
This function should be const.
Modified:
lldb/trunk/include/lldb/Breakpoint/BreakpointOptions.h
lldb/trunk/source/Breakpoint/BreakpointOptions.cpp
Modified: lldb/trunk/include/lldb/Breakpoint/BreakpointOptions.h
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/include/lldb/Breakpoint/BreakpointOptions.h?rev=205790&r1=205789&r2=205790&view=diff
==============================================================================
--- lldb/trunk/include/lldb/Breakpoint/BreakpointOptions.h (original)
+++ lldb/trunk/include/lldb/Breakpoint/BreakpointOptions.h Tue Apr 8 15:24:45 2014
@@ -145,7 +145,8 @@ public:
/// @return
/// The synchronicity of our callback.
//------------------------------------------------------------------
- bool IsCallbackSynchronous () {
+ bool IsCallbackSynchronous () const
+ {
return m_callback_is_synchronous;
}
@@ -280,7 +281,7 @@ public:
/// Returns true if the breakpoint option has a callback set.
//------------------------------------------------------------------
bool
- HasCallback();
+ HasCallback() const;
//------------------------------------------------------------------
/// This is the default empty callback.
Modified: lldb/trunk/source/Breakpoint/BreakpointOptions.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/Breakpoint/BreakpointOptions.cpp?rev=205790&r1=205789&r2=205790&view=diff
==============================================================================
--- lldb/trunk/source/Breakpoint/BreakpointOptions.cpp (original)
+++ lldb/trunk/source/Breakpoint/BreakpointOptions.cpp Tue Apr 8 15:24:45 2014
@@ -154,7 +154,7 @@ BreakpointOptions::InvokeCallback (Stopp
}
bool
-BreakpointOptions::HasCallback ()
+BreakpointOptions::HasCallback () const
{
return m_callback != BreakpointOptions::NullCallback;
}
More information about the lldb-commits
mailing list