Debugger: Replace GdbMi::findChild() with an operator[]

Less noise.

Change-Id: I8e533c97207ff5b9c79182c4fb99993f1992154f
Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
hjk
2013-05-03 18:26:10 +02:00
committed by David Schulz
parent 7ac0cb6247
commit 9b8b8ba97b
17 changed files with 298 additions and 295 deletions

View File

@@ -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();