From cdce2ce7164855eb03909b088273b36a877edf69 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 7 Jul 2013 10:17:28 +0000 Subject: - special method for reading booleans - fixed misprint that led to wrong chat event count git-svn-id: http://svn.miranda-ng.org/main/trunk@5251 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/TabSRMM/src/mim.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'plugins/TabSRMM/src/mim.h') diff --git a/plugins/TabSRMM/src/mim.h b/plugins/TabSRMM/src/mim.h index 9fcc2c6408..b4bde5e57b 100644 --- a/plugins/TabSRMM/src/mim.h +++ b/plugins/TabSRMM/src/mim.h @@ -132,10 +132,13 @@ public: static int __forceinline GetByte(const char *szSetting, int uDefault) { return db_get_b(0, SRMSGMOD_T, szSetting, uDefault); } static int __forceinline GetByte(const char *szModule, const char *szSetting, int uDefault) - { return(db_get_b(0, szModule, szSetting, uDefault)); } + { return db_get_b(0, szModule, szSetting, uDefault); } static int __forceinline GetByte(const HANDLE hContact, const char *szSetting, int uDefault) { return db_get_b(hContact, SRMSGMOD_T, szSetting, uDefault); } + static bool __forceinline GetBool(const char *szModule, const char *szSetting, bool uDefault) + { return db_get_b(0, szModule, szSetting, uDefault) != 0; } + /* * path utilities */ -- cgit v1.2.3