Commit 58a07249 authored by dt's avatar dt
Browse files

Fixes: Fix parseOption method to be robust

parent a0fb72c5
......@@ -548,8 +548,15 @@ void CMakeCbpParser::parseOption()
{
if (attributes().hasAttribute("title"))
m_projectName = attributes().value("title").toString();
if(isStartElement())
parseUnknownElement();
while (!atEnd()) {
readNext();
if (isEndElement()) {
return;
} else if(isStartElement()) {
parseUnknownElement();
}
}
}
void CMakeCbpParser::parseMakeCommand()
......
Markdown is supported
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