diff options
author | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-14 15:48:21 +0000 |
---|---|---|
committer | MikalaiR <nikolay.romanovich@narod.ru> | 2016-02-14 15:48:21 +0000 |
commit | 7f9dacb21b81a04549df028b1493802b7da069fd (patch) | |
tree | df1b0477b1e34cf5b9c84e37a97a1c55699b861b /plugins/Dbx_mdb/src/dbcontacts.cpp | |
parent | d49312735885a76fac1ff9380a1609883cd6b764 (diff) |
dbx_lmdb: common project, small speed optimization
git-svn-id: http://svn.miranda-ng.org/main/trunk@16278 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Dbx_mdb/src/dbcontacts.cpp')
-rw-r--r-- | plugins/Dbx_mdb/src/dbcontacts.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/Dbx_mdb/src/dbcontacts.cpp b/plugins/Dbx_mdb/src/dbcontacts.cpp index 31d9f7bf1b..4bfec0261c 100644 --- a/plugins/Dbx_mdb/src/dbcontacts.cpp +++ b/plugins/Dbx_mdb/src/dbcontacts.cpp @@ -21,7 +21,7 @@ along with this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
*/
-#include "commonheaders.h"
+#include "stdafx.h"
int CDbxMdb::CheckProto(DBCachedContact *cc, const char *proto)
{
@@ -283,7 +283,7 @@ void CDbxMdb::FillContacts() cc->pSubs = (MCONTACT*)mir_alloc(cc->nSubs*sizeof(MCONTACT));
for (int i = 0; i < cc->nSubs; i++) {
char setting[100];
- mir_snprintf(setting, SIZEOF(setting), "Handle%d", i);
+ mir_snprintf(setting, _countof(setting), "Handle%d", i);
cc->pSubs[i] = (0 != GetContactSetting(cc->contactID, META_PROTO, setting, &dbv)) ? NULL : dbv.dVal;
}
}
|