Commit cb406bfc authored by Orgad Shaneh's avatar Orgad Shaneh Committed by Orgad Shaneh

CDB: Remove redundant null valdations

Change-Id: I8a4549e04f2a080db94c9a7d8e733b62ef5e1dbc
Reviewed-by: default avatarDavid Schulz <david.schulz@digia.com>
parent 9e21009c
......@@ -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);
}
......
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