forked from qt-creator/qt-creator
Fixes: Fix parseOption method to be robust
This commit is contained in:
@@ -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()
|
||||
|
Reference in New Issue
Block a user