summaryrefslogtreecommitdiff
path: root/plugins/Db3x_mmap/src/dbcontacts.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-03 12:19:42 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-03 12:19:42 +0000
commit23617c95e41dc21347d4957c29fe5989a36e2a85 (patch)
tree3a88d117557a7dd5f04863e82966225037c21853 /plugins/Db3x_mmap/src/dbcontacts.cpp
parent6064262200ecd2cead6f706765e3049f559cfcd0 (diff)
more correct way of writing signatures
git-svn-id: http://svn.miranda-ng.org/main/trunk@7477 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Db3x_mmap/src/dbcontacts.cpp')
-rw-r--r--plugins/Db3x_mmap/src/dbcontacts.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Db3x_mmap/src/dbcontacts.cpp b/plugins/Db3x_mmap/src/dbcontacts.cpp
index ee65364bf0..d330631b3b 100644
--- a/plugins/Db3x_mmap/src/dbcontacts.cpp
+++ b/plugins/Db3x_mmap/src/dbcontacts.cpp
@@ -142,7 +142,7 @@ STDMETHODIMP_(LONG) CDb3Base::DeleteContact(HANDLE hContact)
dbc = (DBContact*)DBRead(hContact, sizeof(DBContact), NULL);
if (m_dbHeader.ofsFirstContact == (DWORD)hContact) {
m_dbHeader.ofsFirstContact = dbc->ofsNext;
- DBWrite(0,&m_dbHeader,sizeof(m_dbHeader));
+ DBWrite(0, &m_dbHeader, sizeof(m_dbHeader));
}
else {
DWORD ofsNext = dbc->ofsNext;
@@ -161,7 +161,7 @@ STDMETHODIMP_(LONG) CDb3Base::DeleteContact(HANDLE hContact)
DeleteSpace((DWORD)hContact, sizeof(DBContact));
//decrement contact count
m_dbHeader.contactCount--;
- DBWrite(0,&m_dbHeader,sizeof(m_dbHeader));
+ DBWrite(0, &m_dbHeader, sizeof(m_dbHeader));
DBFlush(0);
return 0;
}
@@ -179,8 +179,8 @@ STDMETHODIMP_(HANDLE) CDb3Base::AddContact()
dbc.ofsNext = m_dbHeader.ofsFirstContact;
m_dbHeader.ofsFirstContact = ofsNew;
m_dbHeader.contactCount++;
- DBWrite(ofsNew,&dbc,sizeof(DBContact));
- DBWrite(0,&m_dbHeader,sizeof(m_dbHeader));
+ DBWrite(ofsNew, &dbc, sizeof(DBContact));
+ DBWrite(0, &m_dbHeader, sizeof(m_dbHeader));
DBFlush(0);
}
m_cache->AddContactToCache((HANDLE)ofsNew);