[Kdenlive-devel] [PATCH 43/46] clipproperties.cpp: Use char for single character
Mikko Rapeli
mikko.rapeli at iki.fi
Sat Jul 14 07:56:30 UTC 2012
Should be faster than using a full string. Found by krazy.
---
src/clipproperties.cpp | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/clipproperties.cpp b/src/clipproperties.cpp
index ed3c037..ed52808 100644
--- a/src/clipproperties.cpp
+++ b/src/clipproperties.cpp
@@ -518,7 +518,7 @@ ClipProperties::ClipProperties(QList <DocClipBase *>cliplist, Timecode tc, QMap
setFont(KGlobalSettings::toolBarFont());
m_view.setupUi(this);
QString title = windowTitle();
- title.append(" " + i18np("(%1 clip)", "(%1 clips)", cliplist.count()));
+ title.append(' ' + i18np("(%1 clip)", "(%1 clips)", cliplist.count()));
setWindowTitle(title);
QMap <QString, QString> props = cliplist.at(0)->properties();
m_old_props = commonproperties;
@@ -1005,7 +1005,7 @@ void ClipProperties::parseFolder()
QString filter = KUrl(m_view.clip_path->text()).fileName();
QString ext = filter.section('.', -1);
filter = filter.section('%', 0, -2);
- QString regexp = "^" + filter + "\\d+\\." + ext + "$";
+ QString regexp = '^' + filter + "\\d+\\." + ext + '$';
QRegExp rx(regexp);
QStringList entries;
foreach(const QString & path, result) {
--
1.7.10.4
More information about the Kdenlive
mailing list