Commit 38717c2a authored by Oswald Buddenhagen's avatar Oswald Buddenhagen
Browse files

less inefficient

parent 75d13e02
......@@ -312,8 +312,11 @@ int BreakHandler::findBreakpoint(const QString &fileName, int lineNumber)
int BreakHandler::findBreakpoint(int bpNumber)
{
if (!size())
return -1;
QString numStr = QString::number(bpNumber);
for (int index = 0; index != size(); ++index)
if (at(index)->bpNumber == QString::number(bpNumber))
if (at(index)->bpNumber == numStr)
return index;
return -1;
}
......
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