X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=src%2Fstatusbarmessagelabel.cpp;h=1cb0a0647041f70f67fd819e48a1d79a64727413;hb=56aee6aedeeed3efd10ada8fe3c229eddc01ef05;hp=acc24487016014c0056a8babe29fb97aef2c5584;hpb=3b176bab2ad91159c0a4a7dbe5f278f646115218;p=kdenlive diff --git a/src/statusbarmessagelabel.cpp b/src/statusbarmessagelabel.cpp index acc24487..1cb0a064 100644 --- a/src/statusbarmessagelabel.cpp +++ b/src/statusbarmessagelabel.cpp @@ -112,7 +112,7 @@ bool StatusBarMessageLabel::slotMessageTimeout() bool newMessage = false; // Get the next message from the queue, unless the current one needs to be confirmed - if (m_messageQueue.size() > 0) { + if (!m_messageQueue.isEmpty()) { if (!m_currentMessage.needsConfirmation()) { @@ -124,12 +124,12 @@ bool StatusBarMessageLabel::slotMessageTimeout() } // If the queue is empty, add a default (empty) message - if (m_messageQueue.size() == 0 && m_currentMessage.type != DefaultMessage) { + if (m_messageQueue.isEmpty() && m_currentMessage.type != DefaultMessage) { m_messageQueue.push_back(StatusBarMessageItem()); } // Start a new timer, unless the current message still needs to be confirmed - if (m_messageQueue.size() > 0) { + if (!m_messageQueue.isEmpty()) { if (!m_currentMessage.needsConfirmation()) {