From f9e5dc16b1fe6a2cd05407865a4df8d22c644f94 Mon Sep 17 00:00:00 2001 From: Ilia K Date: Sat, 21 Mar 2015 11:11:07 +0000 Subject: [PATCH] Compare pointers directly instead of ::strcmp in SBXxx::EventIsXxxEvent() llvm-svn: 232892 --- lldb/source/API/SBCommandInterpreter.cpp | 2 +- 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 7a1ef1a..42f6e51 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 5de36e3..d979db7 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 -- 2.7.4