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

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


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

diff --git a/src/clipmanager.cpp b/src/clipmanager.cpp
index edd2ddf..13f4e5c 100644
--- a/src/clipmanager.cpp
+++ b/src/clipmanager.cpp
@@ -531,7 +531,7 @@ void ClipManager::slotAddClipList(const KUrl::List urls, const QString &group, c
                     KFileMetaInfo metaInfo(file.path(), QString("image/jpeg"), KFileMetaInfo::TechnicalInfo);
                     const QHash<QString, KFileMetaInfoItem> metaInfoItems = metaInfo.items();
                     foreach(const KFileMetaInfoItem & metaInfoItem, metaInfoItems) {
-                        prod.setAttribute("meta.attr." + metaInfoItem.name().section("#", 1), metaInfoItem.value().toString());
+                        prod.setAttribute("meta.attr." + metaInfoItem.name().section('#', 1), metaInfoItem.value().toString());
                     }
                 }
             } else if (type->is("application/x-kdenlivetitle")) {
-- 
1.7.10.4





More information about the Kdenlive mailing list