diff options
author | George Hazan <george.hazan@gmail.com> | 2016-08-08 08:19:59 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2016-08-08 08:19:59 +0000 |
commit | b69451fd2e4166cfa7aad6b96047c70f7545eadc (patch) | |
tree | ecd5e75d88b6386cbe7de766ac8774313722b270 /plugins/TabSRMM/src/contactcache.cpp | |
parent | cd3898d8ea6f3fc53950f91544c1db2ee86c60d6 (diff) |
- warning fixes;
- more cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@17168 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/TabSRMM/src/contactcache.cpp')
-rw-r--r-- | plugins/TabSRMM/src/contactcache.cpp | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/contactcache.cpp b/plugins/TabSRMM/src/contactcache.cpp index 6a27e4be6e..afe9bd384c 100644 --- a/plugins/TabSRMM/src/contactcache.cpp +++ b/plugins/TabSRMM/src/contactcache.cpp @@ -38,7 +38,7 @@ static DBCachedContact ccInvalid; CContactCache::CContactCache(MCONTACT hContact) { m_hContact = hContact; - m_wOldStatus = ID_STATUS_OFFLINE; + m_wStatus = m_wOldStatus = ID_STATUS_OFFLINE; if (hContact) { if ((cc = db_get_contact(hContact)) != NULL) { @@ -582,3 +582,9 @@ int CContactCache::getStatus() const {
return db_get_w(getActiveContact(), getActiveProto(), "Status", ID_STATUS_OFFLINE);
}
+
+void CContactCache::updateStatus()
+{
+ m_wOldStatus = m_wStatus;
+ m_wStatus = getStatus();
+}
|