refs #937 Resolved clazy warnings: miscellaneous.

This commit is contained in:
Mathew Sutcliffe
2017-04-17 00:16:12 +01:00
parent 2134b4e874
commit e3fe8ec39f
24 changed files with 89 additions and 65 deletions

View File

@@ -39,7 +39,7 @@ namespace BlackMisc
QStringList list;
for (const auto scope : BlackMisc::as_const(jsonStack()))
{
list.push_back(scope->m_string ? *scope->m_string : scope->m_latin1);
list.push_back(scope->m_string ? *scope->m_string : scope->m_latin1); // clazy:exclude=reserve-candidates
if (scope->m_index >= 0) { list.back() += "[" % QString::number(scope->m_index) % "]"; }
}
return list.isEmpty() ? QStringLiteral("<document root>") : list.join('.');