[Kdenlive-devel] [PATCH 39/46] openclipart.cpp: Use char for single character
Mikko Rapeli
mikko.rapeli at iki.fi
Sat Jul 14 07:56:26 UTC 2012
Should be faster than using a full string. Found by krazy.
---
src/utils/openclipart.cpp | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/utils/openclipart.cpp b/src/utils/openclipart.cpp
index a120266..e106d22 100644
--- a/src/utils/openclipart.cpp
+++ b/src/utils/openclipart.cpp
@@ -115,7 +115,7 @@ QString OpenClipArt::getDefaultDownloadName(QListWidgetItem *item)
if (!item) return QString();
QString url = item->data(downloadRole).toString();
QString path = item->text();
- path.append("." + url.section('.', -1));
+ path.append('.' + url.section('.', -1));
return path;
}
--
1.7.10.4
More information about the Kdenlive
mailing list