forked from qt-creator/qt-creator
CDB: Remove redundant null valdations
Change-Id: I8a4549e04f2a080db94c9a7d8e733b62ef5e1dbc Reviewed-by: David Schulz <david.schulz@digia.com>
This commit is contained in:
committed by
Orgad Shaneh
parent
9e21009c30
commit
cb406bfcd5
@@ -128,8 +128,7 @@ SymbolGroupValue SymbolGroupValue::operator[](unsigned index) const
|
||||
if (isValid() && SymbolGroupValue::verbose) {
|
||||
DebugPrint dp;
|
||||
dp << name() << "::operator[](#" << index << ") failed. ";
|
||||
if (m_node)
|
||||
formatNodeError(m_node, dp);
|
||||
formatNodeError(m_node, dp);
|
||||
}
|
||||
return SymbolGroupValue(m_errorMessage);
|
||||
}
|
||||
@@ -178,8 +177,7 @@ SymbolGroupValue SymbolGroupValue::operator[](const char *name) const
|
||||
if (isValid() && SymbolGroupValue::verbose) { // Do not report subsequent errors
|
||||
DebugPrint dp;
|
||||
dp << this->name() << "::operator[](\"" << name << "\") failed. ";
|
||||
if (m_node)
|
||||
formatNodeError(m_node, dp);
|
||||
formatNodeError(m_node, dp);
|
||||
}
|
||||
return SymbolGroupValue(m_errorMessage);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user