actually the those if(...); weren't supposed to be if statements in the first place, since the result is always true at that point of code anyway.
authorsheepluva
Thu, 27 Oct 2011 22:52:22 +0200
changeset 6218 999215ca87d7
parent 6217 ef53ba841791
child 6219 c193881389c1
actually the those if(...); weren't supposed to be if statements in the first place, since the result is always true at that point of code anyway.
QTfrontend/ui/page/pageoptions.cpp
QTfrontend/ui/widget/SmartLineEdit.cpp
QTfrontend/ui/widget/chatwidget.cpp
--- a/QTfrontend/ui/page/pageoptions.cpp	Thu Oct 27 21:33:18 2011 +0400
+++ b/QTfrontend/ui/page/pageoptions.cpp	Thu Oct 27 22:52:22 2011 +0200
@@ -448,7 +448,7 @@
 
 void PageOptions::setQuality(int value)
 {
-	Q_UNUSED(value);
+    Q_UNUSED(value);
 
     int index = this->CBStereoMode->currentIndex();
     if (index == 0)
@@ -457,7 +457,7 @@
 
 void PageOptions::setFullscreen(int state)
 {
-	Q_UNUSED(state);
+    Q_UNUSED(state);
 
     int index = this->CBStereoMode->currentIndex();
     if (index != 7 && index != 8 && index != 9)
@@ -466,7 +466,7 @@
 
 void PageOptions::setResolution(int state)
 {
-	Q_UNUSED(state);
+    Q_UNUSED(state);
 
     int index = this->CBStereoMode->currentIndex();
     if (index != 7 && index != 8 && index != 9)
--- a/QTfrontend/ui/widget/SmartLineEdit.cpp	Thu Oct 27 21:33:18 2011 +0400
+++ b/QTfrontend/ui/widget/SmartLineEdit.cpp	Thu Oct 27 22:52:22 2011 +0200
@@ -199,8 +199,8 @@
                 match = cmd;
 
                 // move match to end so next time new matches will be preferred
-				if (m_cmds->removeAll(cmd) > 0)
-                    m_cmds->append(cmd);
+                m_cmds->removeAll(cmd);
+                m_cmds->append(cmd);
 
                 break;
             }
@@ -218,8 +218,8 @@
                 isNick = true;
 
                 // move match to end so next time new matches will be prefered
-				if (m_nicks->removeAll(nick) > 0)
-                    m_nicks->append(nick);
+                m_nicks->removeAll(nick);
+                m_nicks->append(nick);
 
                 break;
             }
--- a/QTfrontend/ui/widget/chatwidget.cpp	Thu Oct 27 21:33:18 2011 +0400
+++ b/QTfrontend/ui/widget/chatwidget.cpp	Thu Oct 27 22:52:22 2011 +0200
@@ -841,7 +841,7 @@
         setStyleSheet(style);
         chatText->document()->setDefaultStyleSheet(*s_styleSheet);
         displayNotice(tr("Stylesheet imported from %1").arg(path));
-        displayNotice(tr("Enter %1 if you want to use the current styleSheet in future, enter %2 to reset!").arg("/saveStyleSheet").arg("/discaredStyleSheet"));
+        displayNotice(tr("Enter %1 if you want to use the current styleSheet in future, enter %2 to reset!").arg("/saveStyleSheet").arg("/discardStyleSheet"));
 
         if (file.isOpen())
             file.close();