Remove dead assignments
authorManuel Nickschas <sputnick@quassel-irc.org>
Sat, 7 Feb 2015 16:34:02 +0000 (17:34 +0100)
committerManuel Nickschas <sputnick@quassel-irc.org>
Sat, 7 Feb 2015 16:34:02 +0000 (17:34 +0100)
This makes clang-analyzer happy.

src/uisupport/multilineedit.cpp

index 48ffdba..ed0dbb6 100644 (file)
@@ -551,22 +551,18 @@ QString MultiLineEdit::convertRichtextToMircCodes()
 
         cursor.clearSelection();
     }
-    if (color) {
-        color = false;
+
+    if (color)
         mircText.append('\x03');
-    }
-    if (underline) {
-        underline = false;
+
+    if (underline)
         mircText.append('\x1f');
-    }
-    if (italic) {
-        italic = false;
+
+    if (italic)
         mircText.append('\x1d');
-    }
-    if (bold) {
-        bold = false;
+
+    if (bold)
         mircText.append('\x02');
-    }
 
     return mircText;
 }