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"))
|
if (attributes().hasAttribute("title"))
|
||||||
m_projectName = attributes().value("title").toString();
|
m_projectName = attributes().value("title").toString();
|
||||||
if(isStartElement())
|
|
||||||
|
while (!atEnd()) {
|
||||||
|
readNext();
|
||||||
|
if (isEndElement()) {
|
||||||
|
return;
|
||||||
|
} else if(isStartElement()) {
|
||||||
parseUnknownElement();
|
parseUnknownElement();
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void CMakeCbpParser::parseMakeCommand()
|
void CMakeCbpParser::parseMakeCommand()
|
||||||
|
Reference in New Issue
Block a user