[Lldb-commits] [lldb] r156412 - /lldb/trunk/source/API/SBListener.cpp
Jim Ingham
jingham at apple.com
Tue May 8 13:05:08 PDT 2012
Author: jingham
Date: Tue May 8 15:05:08 2012
New Revision: 156412
URL: http://llvm.org/viewvc/llvm-project?rev=156412&view=rev
Log:
Fixing some indentation.
Modified:
lldb/trunk/source/API/SBListener.cpp
Modified: lldb/trunk/source/API/SBListener.cpp
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/source/API/SBListener.cpp?rev=156412&r1=156411&r2=156412&view=diff
==============================================================================
--- lldb/trunk/source/API/SBListener.cpp (original)
+++ lldb/trunk/source/API/SBListener.cpp Tue May 8 15:05:08 2012
@@ -92,39 +92,39 @@
m_opaque_ptr->Clear ();
}
- uint32_t
- SBListener::StartListeningForEventClass (SBDebugger &debugger,
- const char *broadcaster_class,
- uint32_t event_mask)
- {
- if (m_opaque_ptr)
- {
- Debugger *lldb_debugger = debugger.get();
- if (!lldb_debugger)
- return 0;
- BroadcastEventSpec event_spec (ConstString (broadcaster_class), event_mask);
- return m_opaque_ptr->StartListeningForEventSpec (*lldb_debugger, event_spec);
- }
- else
+uint32_t
+SBListener::StartListeningForEventClass (SBDebugger &debugger,
+ const char *broadcaster_class,
+ uint32_t event_mask)
+{
+ if (m_opaque_ptr)
+ {
+ Debugger *lldb_debugger = debugger.get();
+ if (!lldb_debugger)
return 0;
+ BroadcastEventSpec event_spec (ConstString (broadcaster_class), event_mask);
+ return m_opaque_ptr->StartListeningForEventSpec (*lldb_debugger, event_spec);
}
-
- bool
- SBListener::StopListeningForEventClass (SBDebugger &debugger,
- const char *broadcaster_class,
- uint32_t event_mask)
- {
- if (m_opaque_ptr)
- {
- Debugger *lldb_debugger = debugger.get();
- if (!lldb_debugger)
- return false;
- BroadcastEventSpec event_spec (ConstString (broadcaster_class), event_mask);
- return m_opaque_ptr->StopListeningForEventSpec (*lldb_debugger, event_spec);
- }
- else
+ else
+ return 0;
+}
+
+bool
+SBListener::StopListeningForEventClass (SBDebugger &debugger,
+ const char *broadcaster_class,
+ uint32_t event_mask)
+{
+ if (m_opaque_ptr)
+ {
+ Debugger *lldb_debugger = debugger.get();
+ if (!lldb_debugger)
return false;
+ BroadcastEventSpec event_spec (ConstString (broadcaster_class), event_mask);
+ return m_opaque_ptr->StopListeningForEventSpec (*lldb_debugger, event_spec);
}
+ else
+ return false;
+}
uint32_t
SBListener::StartListeningForEvents (const SBBroadcaster& broadcaster, uint32_t event_mask)
More information about the lldb-commits
mailing list