[Kdenlive-devel] [PATCH 03/46] meltjob.cpp: Use char for single character
Mikko Rapeli
mikko.rapeli at iki.fi
Sat Jul 14 07:55:50 UTC 2012
Should be faster than using a full string. Found by krazy.
---
src/projecttree/meltjob.cpp | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/projecttree/meltjob.cpp b/src/projecttree/meltjob.cpp
index 1476072..27bc049 100644
--- a/src/projecttree/meltjob.cpp
+++ b/src/projecttree/meltjob.cpp
@@ -44,7 +44,7 @@ MeltJob::MeltJob(CLIPTYPE cType, const QString &id, QStringList parameters) : Ab
m_params = parameters;
description = i18n("Process clip");
QString consum = m_params.at(5);
- if (consum.contains(":")) m_dest = consum.section(":", 1);
+ if (consum.contains(':')) m_dest = consum.section(':', 1);
}
void MeltJob::setProducer(Mlt::Producer *producer)
@@ -66,7 +66,7 @@ void MeltJob::startJob()
QString filterParams = m_params.takeFirst();
QString consumer = m_params.takeFirst();
kDebug()<<"consumer: "<<consumer;
- if (consumer.contains(":")) m_dest = consumer.section(":", 1);
+ if (consumer.contains(':')) m_dest = consumer.section(':', 1);
QString consumerParams = m_params.takeFirst();
// optional params
@@ -103,7 +103,7 @@ void MeltJob::startJob()
}
if (consumer.contains(":")) {
- m_consumer = new Mlt::Consumer(*m_profile, consumer.section(":", 0, 0).toUtf8().constData(), consumer.section(":", 1).toUtf8().constData());
+ m_consumer = new Mlt::Consumer(*m_profile, consumer.section(':', 0, 0).toUtf8().constData(), consumer.section(':', 1).toUtf8().constData());
}
else {
m_consumer = new Mlt::Consumer(*m_profile, consumer.toUtf8().constData());
--
1.7.10.4
More information about the Kdenlive
mailing list