Author: ki.stfu
Date: Thu Mar 26 03:16:18 2015
New Revision: 233260
URL: http://llvm.org/viewvc/llvm-project?rev=233260&view=rev
Log:
Use std::vector::const_iterator and std::vector::cbegin/cend in
CMICmnLLDBDebuggerHandleEvents::ChkForStateChanges (MI)
Modified:
lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
Modified: lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
URL:
http://llvm.org/viewvc/llvm-project/lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp?rev=233260&r1=233259&r2=233260&view=diff
==============================================================================
--- lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp (original)
+++ lldb/trunk/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp Thu Mar 26
03:16:18 2015
@@ -1628,7 +1628,7 @@ CMICmnLLDBDebuggerHandleEvents::ChkForSt
continue;
const MIuint threadIndexID = thread.GetIndexID();
- const bool bFound =
std::find(rSessionInfo.m_vecActiveThreadId.begin(),
rSessionInfo.m_vecActiveThreadId.end(), threadIndexID) !=
rSessionInfo.m_vecActiveThreadId.end();
+ const bool bFound =
std::find(rSessionInfo.m_vecActiveThreadId.cbegin(),
rSessionInfo.m_vecActiveThreadId.cend(), threadIndexID) !=
rSessionInfo.m_vecActiveThreadId.end();
if (!bFound)
{
rSessionInfo.m_vecActiveThreadId.push_back(threadIndexID);
@@ -1666,8 +1666,8 @@ CMICmnLLDBDebuggerHandleEvents::ChkForSt
}
// Check for invalid (removed) threads
- CMICmnLLDBDebugSessionInfo::VecActiveThreadId_t::const_iterator it =
rSessionInfo.m_vecActiveThreadId.begin();
- while (it != rSessionInfo.m_vecActiveThreadId.end())
+ CMICmnLLDBDebugSessionInfo::VecActiveThreadId_t::const_iterator it =
rSessionInfo.m_vecActiveThreadId.cbegin();
+ while (it != rSessionInfo.m_vecActiveThreadId.cend())
{
const MIuint threadIndexID = *it;
lldb::SBThread thread = sbProcess.GetThreadByIndexID(threadIndexID);
_______________________________________________
lldb-commits mailing list
[email protected]
http://lists.cs.uiuc.edu/mailman/listinfo/lldb-commits