summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/contactcache.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2018-10-26 22:24:50 +0300
committerGeorge Hazan <ghazan@miranda.im>2018-10-26 22:24:50 +0300
commitd5931de04d23f15930e915bc03fe59a127cc5f16 (patch)
tree04bc350f4b879bd909a953fc9ed32b2c4d2111af /plugins/TabSRMM/src/contactcache.cpp
parent7ef2e7c8737905941593fd73018070934b47116b (diff)
tabSRMM: unused field CContactCache::m_iStatus removed
Diffstat (limited to 'plugins/TabSRMM/src/contactcache.cpp')
-rw-r--r--plugins/TabSRMM/src/contactcache.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp
index 89eece1cb7..3f79b65190 100644
--- a/plugins/TabSRMM/src/contactcache.cpp
+++ b/plugins/TabSRMM/src/contactcache.cpp
@@ -38,7 +38,6 @@ static DBCachedContact ccInvalid;
CContactCache::CContactCache(MCONTACT hContact)
{
m_hContact = hContact;
- m_iStatus = m_iOldStatus = ID_STATUS_OFFLINE;
if (hContact) {
if ((cc = db_get_contact(hContact)) != nullptr) {
@@ -557,7 +556,7 @@ size_t CContactCache::getMaxMessageLength()
bool CContactCache::updateStatus(int iStatus)
{
- m_iOldStatus = m_iStatus;
- m_iStatus = iStatus;
- return m_iOldStatus != iStatus;
+ bool bRet = m_iOldStatus != iStatus;
+ m_iOldStatus = iStatus;
+ return bRet;
}