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

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


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

diff --git a/src/clipstabilize.cpp b/src/clipstabilize.cpp
index fcae509..6114707 100644
--- a/src/clipstabilize.cpp
+++ b/src/clipstabilize.cpp
@@ -147,7 +147,7 @@ QStringList ClipStabilize::params()
     QHashIterator <QString,QHash<QString,QString> > it(m_ui_params);
     while (it.hasNext()){
         it.next();
-        filterparamsList << it.key() + "=" + it.value().value("value");
+        filterparamsList << it.key() + '=' + it.value().value("value");
     }
     params << filterparamsList.join(" ");
     
@@ -256,7 +256,7 @@ void ClipStabilize::fillParameters(QStringList lst)
     m_ui_params.clear();
     while (!lst.isEmpty()){
         QString vallist=lst.takeFirst();
-        QStringList cont=vallist.split(",");
+        QStringList cont=vallist.split(',');
         QString name=cont.takeFirst();
         while (!cont.isEmpty()){
             QString valname=cont.takeFirst();
-- 
1.7.10.4





More information about the Kdenlive mailing list