[Kdenlive-devel] [PATCH 02/46] lideshowclip.cpp: Use char for single character

Mikko Rapeli mikko.rapeli at iki.fi
Sat Jul 14 07:55:49 UTC 2012


Should be faster than using a full string. Found by krazy.
---
 src/slideshowclip.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/slideshowclip.cpp b/src/slideshowclip.cpp
index e9cb422..457af2e 100644
--- a/src/slideshowclip.cpp
+++ b/src/slideshowclip.cpp
@@ -357,8 +357,8 @@ QString SlideshowClip::selectedPath(KUrl url, bool isMime, QString extension, QS
                 gap++;
             }
         }
-        if (firstFrame > 0) extension = filter + "%" + QString::number(firstFrame).rightJustified(precision, '0', false) + "d" + ext;
-        else extension = filter + "%" + QString::number(precision) + "d" + ext;
+        if (firstFrame > 0) extension = filter + '%' + QString::number(firstFrame).rightJustified(precision, '0', false) + 'd' + ext;
+        else extension = filter + '%' + QString::number(precision) + 'd' + ext;
     }
     kDebug() << "// FOUND " << (*list).count() << " items for " << url.path();
     return  folder + extension;
-- 
1.7.10.4





More information about the Kdenlive mailing list