diff options
author | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-05-19 02:16:39 +0200 |
---|---|---|
committer | Ivan Komissarov <ABBAPOH@gmail.com> | 2019-05-21 11:15:34 +0000 |
commit | 52737be344ba20625a2a0d305517eafadb78c74d (patch) | |
tree | fc0505fc17159e7e49dbb80b936d71df8c938258 /src/lib/corelib/buildgraph/transformerchangetracking.cpp | |
parent | c75be7ad516c7cd041820a9e651ae71fcb8248c4 (diff) |
Apply modernize-loop-convert fix-it
Makes clang-tidy happier
Change-Id: Ic29b552572719ea58c7ad385cc6e1d68cef9eedc
Reviewed-by: Christian Kandeler <christian.kandeler@qt.io>
Diffstat (limited to 'src/lib/corelib/buildgraph/transformerchangetracking.cpp')
-rw-r--r-- | src/lib/corelib/buildgraph/transformerchangetracking.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/corelib/buildgraph/transformerchangetracking.cpp b/src/lib/corelib/buildgraph/transformerchangetracking.cpp index 4ee4394fd..eadc99272 100644 --- a/src/lib/corelib/buildgraph/transformerchangetracking.cpp +++ b/src/lib/corelib/buildgraph/transformerchangetracking.cpp @@ -209,8 +209,8 @@ bool TrafoChangeTracker::isExportedModuleUpToDate(const QString &productName, bool TrafoChangeTracker::areExportedModulesUpToDate( const std::unordered_map<QString, ExportedModule> exportedModules) const { - for (auto it = exportedModules.begin(); it != exportedModules.end(); ++it) { - if (!isExportedModuleUpToDate(it->first, it->second)) + for (const auto &kv : exportedModules) { + if (!isExportedModuleUpToDate(kv.first, kv.second)) return false; } return true; |