]> git.sesse.net Git - kdenlive/blobdiff - src/abstractclipitem.cpp
Still const'ref. Minor optimization
[kdenlive] / src / abstractclipitem.cpp
index f56d05b07a1d23485deb33ee7482ae98d9b54ca5..966604cf34a1224a3b8135f4813f443858ed4b33 100644 (file)
@@ -279,7 +279,7 @@ void AbstractClipItem::drawKeyFrames(QPainter *painter, const QTransform &transf
         x2 = br.right();
         if (limitedKeyFrames) {
             QMap<int, int>::const_iterator end = m_keyframes.constEnd();
-            end--;
+            --end;
             x2 = x1 + maxw * (end.key() - start);
             x1 += maxw * (m_keyframes.constBegin().key() - start);
         }