diff options
author | hjk <[email protected]> | 2013-05-03 18:26:10 +0200 |
---|---|---|
committer | David Schulz <[email protected]> | 2013-05-06 14:41:08 +0200 |
commit | 9b8b8ba97b02241c0ff1e545232badb0fcee294a (patch) | |
tree | af7b2d8f219d7d29708db5c64d5657a491d4a467 /src/plugins/debugger/debuggerprotocol.cpp | |
parent | 7ac0cb6247b11fe835f2bd2b7870226686ddf291 (diff) |
Debugger: Replace GdbMi::findChild() with an operator[]
Less noise.
Change-Id: I8e533c97207ff5b9c79182c4fb99993f1992154f
Reviewed-by: David Schulz <[email protected]>
Diffstat (limited to 'src/plugins/debugger/debuggerprotocol.cpp')
-rw-r--r-- | src/plugins/debugger/debuggerprotocol.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/debugger/debuggerprotocol.cpp b/src/plugins/debugger/debuggerprotocol.cpp index b2cabdade14..53d787a9d70 100644 --- a/src/plugins/debugger/debuggerprotocol.cpp +++ b/src/plugins/debugger/debuggerprotocol.cpp @@ -331,9 +331,9 @@ void GdbMi::fromStringMultiple(const QByteArray &ba) parseTuple_helper(from, to); } -GdbMi GdbMi::findChild(const char *name) const +GdbMi GdbMi::operator[](const char *name) const { - for (int i = 0; i < m_children.size(); ++i) + for (int i = 0, n = m_children.size(); i < n; ++i) if (m_children.at(i).m_name == name) return m_children.at(i); return GdbMi(); |