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

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


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

diff --git a/src/keyframeedit.cpp b/src/keyframeedit.cpp
index 0bb08a2..8014cd0 100644
--- a/src/keyframeedit.cpp
+++ b/src/keyframeedit.cpp
@@ -126,7 +126,7 @@ void KeyframeEdit::addParameter(QDomElement e, int activeKeyframe)
         doubleparam->setInTimelineProperty(true);
     }
 
-    QStringList frames = e.attribute("keyframes").split(";", QString::SkipEmptyParts);
+    QStringList frames = e.attribute("keyframes").split(';', QString::SkipEmptyParts);
     for (int i = 0; i < frames.count(); i++) {
         int frame = frames.at(i).section(':', 0, 0).toInt();
         bool found = false;
-- 
1.7.10.4





More information about the Kdenlive mailing list