summaryrefslogtreecommitdiff
path: root/include/m_chat_int.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-03-09 14:30:35 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-03-09 14:30:45 +0300
commit6bf18e4265c8a0938d12e98eef1562b1ee4bc97b (patch)
treec5d317dc655ef1327ebcf463f3508da1f32b93b0 /include/m_chat_int.h
parent58e977eada0eb95198dbc552d99446c83506a73a (diff)
any CSrmmBaseDialog descendant can refer to SESSION_INFO, not only CChatRoomDlg
Diffstat (limited to 'include/m_chat_int.h')
-rw-r--r--include/m_chat_int.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/m_chat_int.h b/include/m_chat_int.h
index 886c83d22f..1342e2b591 100644
--- a/include/m_chat_int.h
+++ b/include/m_chat_int.h
@@ -421,10 +421,13 @@ protected:
protected:
CCtrlEdit *m_pLog, *m_pEntry;
+ SESSION_INFO *m_si;
public:
MCONTACT m_hContact;
+ __forceinline bool isChat() const { return m_si != nullptr; }
+
__inline void* operator new(size_t size){ return calloc(1, size); }
__inline void operator delete(void* p) { free(p); }
};