]> git.sesse.net Git - kdenlive/blobdiff - src/unicodedialog.cpp
const'ify when necessary
[kdenlive] / src / unicodedialog.cpp
index 9d3c0cd9de430f497183be43263d49886af62270..7576c3b2c9d7258c0c05722c79984f8c7096764b 100644 (file)
@@ -80,7 +80,7 @@ bool UnicodeDialog::controlCharacter(QString text)
 
     switch (inputMethod) {
     case InputHex:
-        if (t == ""
+        if (t.isEmpty()
                 || (t.length() == 1 && !(t == "9" || t == "a" || t == "d"))
                 || (t.length() == 2 && t.at(0) == QChar('1'))) {
             isControlCharacter = true;
@@ -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 += ' ';
         }
     }