summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/src/modern_clc.h
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-05-06 15:28:18 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-05-06 15:28:18 +0000
commitf6c3afc4b7eb38a4c2a189fa7e5ba9d44c095cc4 (patch)
treee8d746f72c44344150c53c57a58618e6a47a3406 /plugins/Clist_modern/src/modern_clc.h
parent5b3107408e96484e0c98c172c39dde66c8fe9897 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@16806 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern/src/modern_clc.h')
-rw-r--r--plugins/Clist_modern/src/modern_clc.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/plugins/Clist_modern/src/modern_clc.h b/plugins/Clist_modern/src/modern_clc.h
index f5908e29c4..261724c0f9 100644
--- a/plugins/Clist_modern/src/modern_clc.h
+++ b/plugins/Clist_modern/src/modern_clc.h
@@ -211,9 +211,11 @@ struct ClcContact : public ClcContactBase
BOOL ext_fItemsValid;
tContactItems ext_mpItemsDesc[EXTRA_ICON_COUNT + 10]; //up to 10 items
+ __forceinline bool isCheckBox(DWORD_PTR style) const
+ { return (style & CLS_CHECKBOXES && type == CLCIT_CONTACT) || (style & CLS_GROUPCHECKBOXES && type == CLCIT_GROUP) || (type == CLCIT_INFO && flags & CLCIIF_CHECKBOX);
+ }
__forceinline bool isChat() const
- {
- return (type == CLCIT_CONTACT) && (db_get_b(hContact, proto, "ChatRoom", 0) != 0);
+ { return (type == CLCIT_CONTACT) && (db_get_b(hContact, proto, "ChatRoom", 0) != 0);
}
};