diff --git a/src/plugins/cpptools/clangdiagnosticconfigsmodel.cpp b/src/plugins/cpptools/clangdiagnosticconfigsmodel.cpp index 44187b6a102..206a0d8baab 100644 --- a/src/plugins/cpptools/clangdiagnosticconfigsmodel.cpp +++ b/src/plugins/cpptools/clangdiagnosticconfigsmodel.cpp @@ -101,9 +101,7 @@ static void addBuiltinConfigs(ClangDiagnosticConfigsModel &model) ClangDiagnosticConfigsModel::ClangDiagnosticConfigsModel(const ClangDiagnosticConfigs &customConfigs) { addBuiltinConfigs(*this); - - foreach (const ClangDiagnosticConfig &config, customConfigs) - m_diagnosticConfigs.append(config); + m_diagnosticConfigs.append(customConfigs); } int ClangDiagnosticConfigsModel::size() const