CppTools: Remove pointless loop

Change-Id: Ie6c597421f81529973351a6363c0110435e42c29
Reviewed-by: Ivan Donchevskii <ivan.donchevskii@qt.io>
This commit is contained in:
Nikolai Kosjar
2018-01-19 11:35:55 +01:00
parent a405f2f53d
commit 43a3ea1d22

View File

@@ -101,9 +101,7 @@ static void addBuiltinConfigs(ClangDiagnosticConfigsModel &model)
ClangDiagnosticConfigsModel::ClangDiagnosticConfigsModel(const ClangDiagnosticConfigs &customConfigs) ClangDiagnosticConfigsModel::ClangDiagnosticConfigsModel(const ClangDiagnosticConfigs &customConfigs)
{ {
addBuiltinConfigs(*this); addBuiltinConfigs(*this);
m_diagnosticConfigs.append(customConfigs);
foreach (const ClangDiagnosticConfig &config, customConfigs)
m_diagnosticConfigs.append(config);
} }
int ClangDiagnosticConfigsModel::size() const int ClangDiagnosticConfigsModel::size() const