[TD] Gui: remove some superfluous nullptr checks

This commit is contained in:
Uwe
2022-07-19 02:49:46 +02:00
parent 003757176c
commit 2e5e4dced8
38 changed files with 154 additions and 160 deletions

View File

@@ -536,7 +536,7 @@ void MRichTextEdit::slotCursorPositionChanged() {
if (m_lastBlockList &&
(l == m_lastBlockList ||
(l != nullptr && m_lastBlockList != nullptr && l->format().style() == m_lastBlockList->format().style()) ) ) {
(l && m_lastBlockList && l->format().style() == m_lastBlockList->format().style()) ) ) {
return;
}
m_lastBlockList = l;