diff options
author | Sérgio Martins <sergio.martins@kdab.com> | 2016-02-05 19:03:47 +0000 |
---|---|---|
committer | Sérgio Martins <iamsergio@gmail.com> | 2016-02-08 17:58:57 +0000 |
commit | 397d16fee1f023d3ae741a513334009823f1163c (patch) | |
tree | 9dc728324c99390b9a3dd506b95b0e6abdb9f661 /src/qml/jit/qv4regalloc.cpp | |
parent | 3024534574967ace249cf14f08d161ce4e728ba3 (diff) |
Don't deep copy std::vector [-Wclazy-foreach]
Change-Id: Ic326786a64c9b6dcd8cee1b45dec45de9cd90414
Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'src/qml/jit/qv4regalloc.cpp')
-rw-r--r-- | src/qml/jit/qv4regalloc.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/qml/jit/qv4regalloc.cpp b/src/qml/jit/qv4regalloc.cpp index f66e3e0875..a6e085a913 100644 --- a/src/qml/jit/qv4regalloc.cpp +++ b/src/qml/jit/qv4regalloc.cpp @@ -1398,7 +1398,7 @@ LifeTimeInterval *RegisterAllocator::cloneFixedInterval(int reg, bool isFP, cons void RegisterAllocator::prepareRanges() { LifeTimeInterval ltiWithCalls = createFixedInterval(int(_info->calls().size())); - foreach (int callPosition, _info->calls()) + for (int callPosition : _info->calls()) ltiWithCalls.addRange(callPosition, callPosition); const int regCount = _normalRegisters.size(); |