summaryrefslogtreecommitdiffstats
path: root/lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
diff options
context:
space:
mode:
authorIlia K <ki.stfu@gmail.com>2015-03-26 08:16:18 +0000
committerIlia K <ki.stfu@gmail.com>2015-03-26 08:16:18 +0000
commit23536d92c75dfebd65afa5ce1e588470e908b594 (patch)
tree024d6bf1ba9550a9fd20a695854d290ed103c979 /lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
parent9e473d0929c86a425bcfd7065912182fb60bb608 (diff)
downloadbcm5719-llvm-23536d92c75dfebd65afa5ce1e588470e908b594.tar.gz
bcm5719-llvm-23536d92c75dfebd65afa5ce1e588470e908b594.zip
Use std::vector::const_iterator and std::vector::cbegin/cend in CMICmnLLDBDebuggerHandleEvents::ChkForStateChanges (MI)
llvm-svn: 233260
Diffstat (limited to 'lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp')
-rw-r--r--lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp b/lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
index 37d495f1b54..6cb4a3942c3 100644
--- a/lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
+++ b/lldb/tools/lldb-mi/MICmnLLDBDebuggerHandleEvents.cpp
@@ -1628,7 +1628,7 @@ CMICmnLLDBDebuggerHandleEvents::ChkForStateChanges(void)
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::ChkForStateChanges(void)
}
// 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);
OpenPOWER on IntegriCloud