Commit 459a1992 authored by Simon Redman's avatar Simon Redman

Check empty string using .isEmpty() instead of == ""

parent c9d85107
......@@ -53,7 +53,7 @@ void ConversationListModel::setDeviceId(const QString& deviceId)
return;
}
if (deviceId == "") {
if (deviceId.isEmpty()) {
return;
}
......
......@@ -52,7 +52,7 @@ void ConversationModel::setThreadId(const qint64& threadId)
m_threadId = threadId;
clear();
knownMessageIDs.clear();
if (m_threadId != INVALID_THREAD_ID && m_deviceId != "") {
if (m_threadId != INVALID_THREAD_ID && !m_deviceId.isEmpty()) {
requestMoreMessages();
}
}
......
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