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

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


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

diff --git a/src/renderer.cpp b/src/renderer.cpp
index 3f423ae..5effeb8 100644
--- a/src/renderer.cpp
+++ b/src/renderer.cpp
@@ -285,7 +285,7 @@ void Render::buildConsumer(const QString &profileName)
 Mlt::Producer *Render::invalidProducer(const QString &id)
 {
     Mlt::Producer *clip;
-    QString txt = "+" + i18n("Missing clip") + ".txt";
+    QString txt = '+' + i18n("Missing clip") + ".txt";
     char *tmp = qstrdup(txt.toUtf8().constData());
     clip = new Mlt::Producer(*m_mltProfile, tmp);
     delete[] tmp;
-- 
1.7.10.4





More information about the Kdenlive mailing list