diff options
author | Friedemann Kleint <[email protected]> | 2015-02-23 13:45:44 +0100 |
---|---|---|
committer | Friedemann Kleint <[email protected]> | 2015-02-26 15:13:40 +0000 |
commit | 3b5447661a2c9b4bbced202e116a7edeaaf9a065 (patch) | |
tree | ff7486e826942ac5339135913521bb28cf5ceb37 /src/quick/scenegraph/util/qsgdepthstencilbuffer.cpp | |
parent | 5163c11952a39458dd6d7ba10391c2b39ccdf86a (diff) |
QtQuick: Micro-optimize iterator loops.
Avoid repeated instantiation of end() in loops, use variable instead.
Change-Id: I6ab1fe2b82406d5ee91710a0333587ffb82c04d4
Reviewed-by: Erik Verbruggen <[email protected]>
Diffstat (limited to 'src/quick/scenegraph/util/qsgdepthstencilbuffer.cpp')
-rw-r--r-- | src/quick/scenegraph/util/qsgdepthstencilbuffer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/quick/scenegraph/util/qsgdepthstencilbuffer.cpp b/src/quick/scenegraph/util/qsgdepthstencilbuffer.cpp index 22d52878ae..5d2260923b 100644 --- a/src/quick/scenegraph/util/qsgdepthstencilbuffer.cpp +++ b/src/quick/scenegraph/util/qsgdepthstencilbuffer.cpp @@ -151,7 +151,7 @@ void QSGDefaultDepthStencilBuffer::free() QSGDepthStencilBufferManager::~QSGDepthStencilBufferManager() { - for (Hash::const_iterator it = m_buffers.constBegin(); it != m_buffers.constEnd(); ++it) { + for (Hash::const_iterator it = m_buffers.constBegin(), cend = m_buffers.constEnd(); it != cend; ++it) { QSGDepthStencilBuffer *buffer = it.value().data(); buffer->free(); buffer->m_manager = 0; |