]> git.sesse.net Git - kdenlive/blobdiff - src/unicodedialog.cpp
Const'ref
[kdenlive] / src / unicodedialog.cpp
index 4ca3e0b6e7a6554004ccb9310ee5a8714a86627a..d55c30dfaffe1edca32bda5b06fdb1b642d9e0f0 100644 (file)
@@ -70,14 +70,11 @@ UnicodeWidget::UnicodeWidget(UnicodeDialog::InputMethod inputMeth, QWidget *pare
     arrowDown->setToolTip(i18n("Next Unicode character (Arrow Down)"));
     unicodeNumber->setToolTip(i18n("Enter your Unicode number here. Allowed characters: [0-9] and [a-f]."));
     unicodeNumber->selectAll(); // Selection will be reset by setToolTip and similar, so set it here
-
 }
 
 UnicodeWidget::~UnicodeWidget()
 {
 }
-
-
 /// METHODS
 
 void UnicodeWidget::showLastUnicode()
@@ -123,7 +120,7 @@ bool UnicodeWidget::controlCharacter(uint value)
 
 QString UnicodeWidget::trimmedUnicodeNumber(QString text)
 {
-    while (text.length() > 0 && text.at(0) == QChar('0')) {
+    while (!text.isEmpty() && text.at(0) == QChar('0')) {
         text = text.remove(0, 1);
     }
     return text;