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

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


Should be faster than using a full string. Found by krazy.
---
 src/unicodedialog.cpp |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/unicodedialog.cpp b/src/unicodedialog.cpp
index 51d462d..7576c3b 100644
--- a/src/unicodedialog.cpp
+++ b/src/unicodedialog.cpp
@@ -210,7 +210,7 @@ void UnicodeDialog::updateOverviewChars(uint unicode)
 
     for (i = 1; i <= 4; i++) {
         if (unicode > i && !controlCharacter(unicode - i)) {
-            left = " " + left;
+            left = ' ' + left;
             left = QChar(unicode - i) + left;
         }
     }
@@ -218,7 +218,7 @@ void UnicodeDialog::updateOverviewChars(uint unicode)
     for (i = 1; i <= 8; i++) {
         if (unicode + i <= MAX_UNICODE_V1 && !controlCharacter(unicode + i)) {
             right += QChar(unicode + i);
-            right += " ";
+            right += ' ';
         }
     }
 
-- 
1.7.10.4





More information about the Kdenlive mailing list