]> git.sesse.net Git - kdenlive/blobdiff - src/lib/audio/audioCorrelationInfo.cpp
Better to use ++i than i++ (minor optimization)
[kdenlive] / src / lib / audio / audioCorrelationInfo.cpp
index db438bdd0a9542935ee909c8978c5b543353aee7..2313fe2bffa7cdd5431433307b32a15ed27f7263 100644 (file)
@@ -40,7 +40,7 @@ int64_t AudioCorrelationInfo::max() const
     if (m_max <= 0) {
         int width = size();
         int64_t max = 0;
-        for (int i = 0; i < width; i++) {
+        for (int i = 0; i < width; ++i) {
             if (m_correlationVector[i] > max) {
                 max = m_correlationVector[i];
             }
@@ -57,7 +57,7 @@ int AudioCorrelationInfo::maxIndex() const
     int index = 0;
     int width = size();
 
-    for (int i = 0; i < width; i++) {
+    for (int i = 0; i < width; ++i) {
         if (m_correlationVector[i] > max) {
             max = m_correlationVector[i];
             index = i;