summaryrefslogtreecommitdiff
path: root/plugins/TabSRMM/src/utils.h
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-12-26 17:41:34 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-12-26 17:41:34 +0300
commit45373ed8b8906f1a7e715b8c830f91fc1b46649a (patch)
treea7ea46c2cafe4c3b1c372263a40cfd50b81d5ef5 /plugins/TabSRMM/src/utils.h
parent4ac8a5589cd54abe47f1c80c67b2a8265764528a (diff)
standard color table exported from core
Diffstat (limited to 'plugins/TabSRMM/src/utils.h')
-rw-r--r--plugins/TabSRMM/src/utils.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/plugins/TabSRMM/src/utils.h b/plugins/TabSRMM/src/utils.h
index 468c174733..eac7e070e5 100644
--- a/plugins/TabSRMM/src/utils.h
+++ b/plugins/TabSRMM/src/utils.h
@@ -38,6 +38,12 @@
struct TRTFColorTable
{
+ __forceinline TRTFColorTable(const wchar_t *wszName, COLORREF _clr) :
+ clr(_clr)
+ {
+ mir_wstrncpy(szName, wszName, _countof(szName));
+ }
+
wchar_t szName[10];
COLORREF clr;
};
@@ -50,7 +56,7 @@ public:
static char* FilterEventMarkers(char *szText);
static void DoubleAmpersands(wchar_t *pszText, size_t len);
static void RTF_CTableInit();
- static void RTF_ColorAdd(const wchar_t *tszColname, size_t length);
+ static void RTF_ColorAdd(const wchar_t *tszColname);
static int ReadContainerSettingsFromDB(const MCONTACT hContact, TContainerSettings *cs, const char *szKey = 0);
static int WriteContainerSettingsToDB(const MCONTACT hContact, TContainerSettings *cs, const char *szKey = 0);
static void SettingsToContainer(TContainerData *pContainer);