From 43a3ea1d22ccf1c9cb3109ed4b93960b01ad81ba Mon Sep 17 00:00:00 2001 From: Nikolai Kosjar Date: Fri, 19 Jan 2018 11:35:55 +0100 Subject: [PATCH] CppTools: Remove pointless loop Change-Id: Ie6c597421f81529973351a6363c0110435e42c29 Reviewed-by: Ivan Donchevskii --- src/plugins/cpptools/clangdiagnosticconfigsmodel.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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