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

Mikko Rapeli mikko.rapeli at iki.fi
Sat Jul 14 07:56:25 UTC 2012


Should be faster than using a full string. Found by krazy.
---
 src/kthumb.cpp |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/kthumb.cpp b/src/kthumb.cpp
index a87f654..c5e1691 100644
--- a/src/kthumb.cpp
+++ b/src/kthumb.cpp
@@ -355,7 +355,7 @@ void KThumb::slotGetIntraThumbs()
     const int theight = KdenliveSettings::trackheight();
     const int frameWidth = (int)(theight * m_ratio + 0.5);
     const int displayWidth = (int)(theight * m_dar + 0.5);
-    QString path = m_url.path() + "_";
+    QString path = m_url.path() + '_';
     bool addedThumbs = false;
 
     while (!m_intraFramesQueue.isEmpty()) {
-- 
1.7.10.4





More information about the Kdenlive mailing list