diff options
author | Ilia K <ki.stfu@gmail.com> | 2015-03-21 11:11:07 +0000 |
---|---|---|
committer | Ilia K <ki.stfu@gmail.com> | 2015-03-21 11:11:07 +0000 |
commit | f9e5dc16b1fe6a2cd05407865a4df8d22c644f94 (patch) | |
tree | 9c08a62d887d8d33f7d91041017a39d08620702c /lldb/source/API | |
parent | af10e1ce6f7cb40763f256790a3ece985118e735 (diff) | |
download | bcm5719-llvm-f9e5dc16b1fe6a2cd05407865a4df8d22c644f94.tar.gz bcm5719-llvm-f9e5dc16b1fe6a2cd05407865a4df8d22c644f94.zip |
Compare pointers directly instead of ::strcmp in SBXxx::EventIsXxxEvent()
llvm-svn: 232892
Diffstat (limited to 'lldb/source/API')
-rw-r--r-- | lldb/source/API/SBCommandInterpreter.cpp | 2 | ||||
-rw-r--r-- | lldb/source/API/SBProcess.cpp | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/lldb/source/API/SBCommandInterpreter.cpp b/lldb/source/API/SBCommandInterpreter.cpp index 7a1ef1a7783..42f6e51c792 100644 --- a/lldb/source/API/SBCommandInterpreter.cpp +++ b/lldb/source/API/SBCommandInterpreter.cpp @@ -551,7 +551,7 @@ SBCommandInterpreter::GetArgumentDescriptionAsCString (const lldb::CommandArgume bool SBCommandInterpreter::EventIsCommandInterpreterEvent (const lldb::SBEvent &event) { - return strcmp (event.GetBroadcasterClass(), SBCommandInterpreter::GetBroadcasterClass()) == 0; + return event.GetBroadcasterClass() == SBCommandInterpreter::GetBroadcasterClass(); } bool diff --git a/lldb/source/API/SBProcess.cpp b/lldb/source/API/SBProcess.cpp index 5de36e302c1..d979db77eba 100644 --- a/lldb/source/API/SBProcess.cpp +++ b/lldb/source/API/SBProcess.cpp @@ -1001,7 +1001,7 @@ SBProcess::GetProcessFromEvent (const SBEvent &event) bool SBProcess::EventIsProcessEvent (const SBEvent &event) { - return strcmp (event.GetBroadcasterClass(), SBProcess::GetBroadcasterClass()) == 0; + return event.GetBroadcasterClass() == SBProcess::GetBroadcasterClass(); } SBBroadcaster |