Commit 7351427f authored by Kurt Hindenburg's avatar Kurt Hindenburg

Fix readability-simplify-boolean-expr issues

parent ac8aedb3
...@@ -1658,7 +1658,7 @@ void TerminalDisplay::setBlinkingCursorEnabled(bool blink) ...@@ -1658,7 +1658,7 @@ void TerminalDisplay::setBlinkingCursorEnabled(bool blink)
// if cursor is blinking(hidden), blink it again to make it show // if cursor is blinking(hidden), blink it again to make it show
blinkCursorEvent(); blinkCursorEvent();
} }
Q_ASSERT(_cursorBlinking == false); Q_ASSERT(!_cursorBlinking);
} }
} }
...@@ -1686,7 +1686,7 @@ void TerminalDisplay::focusOutEvent(QFocusEvent*) ...@@ -1686,7 +1686,7 @@ void TerminalDisplay::focusOutEvent(QFocusEvent*)
// suppress further cursor blinking // suppress further cursor blinking
_blinkCursorTimer->stop(); _blinkCursorTimer->stop();
Q_ASSERT(_cursorBlinking == false); Q_ASSERT(!_cursorBlinking);
// if text is blinking (hidden), blink it again to make it shown // if text is blinking (hidden), blink it again to make it shown
if (_textBlinking) if (_textBlinking)
...@@ -1694,7 +1694,7 @@ void TerminalDisplay::focusOutEvent(QFocusEvent*) ...@@ -1694,7 +1694,7 @@ void TerminalDisplay::focusOutEvent(QFocusEvent*)
// suppress further text blinking // suppress further text blinking
_blinkTextTimer->stop(); _blinkTextTimer->stop();
Q_ASSERT(_textBlinking == false); Q_ASSERT(!_textBlinking);
_showUrlHint = false; _showUrlHint = false;
...@@ -3128,7 +3128,7 @@ void TerminalDisplay::keyPressEvent(QKeyEvent* event) ...@@ -3128,7 +3128,7 @@ void TerminalDisplay::keyPressEvent(QKeyEvent* event)
// if cursor is blinking(hidden), blink it again to show it // if cursor is blinking(hidden), blink it again to show it
blinkCursorEvent(); blinkCursorEvent();
} }
Q_ASSERT(_cursorBlinking == false); Q_ASSERT(!_cursorBlinking);
} }
emit keyPressedSignal(event); emit keyPressedSignal(event);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment