forked from qt-creator/qt-creator
do not crash on lines starting with an equal sign
This commit is contained in:
@@ -357,6 +357,9 @@ void ProFileEvaluator::Private::insertVariable(const QString &line, int *i)
|
|||||||
{
|
{
|
||||||
ProVariable::VariableOperator opkind;
|
ProVariable::VariableOperator opkind;
|
||||||
|
|
||||||
|
if (m_proitem.isEmpty()) // Line starting with '=', like a conflict marker
|
||||||
|
return;
|
||||||
|
|
||||||
switch (m_proitem.at(m_proitem.length() - 1).unicode()) {
|
switch (m_proitem.at(m_proitem.length() - 1).unicode()) {
|
||||||
case '+':
|
case '+':
|
||||||
m_proitem.chop(1);
|
m_proitem.chop(1);
|
||||||
|
Reference in New Issue
Block a user