Commit 71db47c4 authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

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

this avoids unnecessary QByteArray constructions
parent 522006fc
......@@ -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)
......
......@@ -121,7 +121,7 @@ public:
const GdbMi &childAt(int index) const { return m_children[index]; }
GdbMi &childAt(int index) { return m_children[index]; }
GdbMi findChild(const QByteArray &name) const;
GdbMi findChild(const char *name) const;
QByteArray toString(bool multiline = false, int indent = 0) const;
void fromString(const QByteArray &str);
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment