make findChild take a "const char *" as the name arg

this avoids unnecessary QByteArray constructions
This commit is contained in:
Oswald Buddenhagen
2009-04-30 22:43:57 +02:00
parent 522006fcf1
commit 71db47c467
2 changed files with 2 additions and 2 deletions

View File

@@ -269,7 +269,7 @@ void GdbMi::fromString(const QByteArray &ba)
parseResultOrValue(from, to);
}
GdbMi GdbMi::findChild(const QByteArray &name) const
GdbMi GdbMi::findChild(const char *name) const
{
for (int i = 0; i < m_children.size(); ++i)
if (m_children.at(i).m_name == name)