From adf7fec7b1e32e93998e08cd41e9d84852db1758 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 6 Apr 2016 13:39:41 +0000 Subject: clist_modern: - fix for a nightmare with contsct renaming; - end of a crutch with caching 'Unknown contact'; - cache control over the contact's name went to the core; - code cleaning; - version bump; git-svn-id: http://svn.miranda-ng.org/main/trunk@16596 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_modern/src/modern_skinengine.h | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'plugins/Clist_modern/src/modern_skinengine.h') diff --git a/plugins/Clist_modern/src/modern_skinengine.h b/plugins/Clist_modern/src/modern_skinengine.h index 70b7a9b838..710b8d2789 100644 --- a/plugins/Clist_modern/src/modern_skinengine.h +++ b/plugins/Clist_modern/src/modern_skinengine.h @@ -70,17 +70,17 @@ public: enum { IT_UNKNOWN, IT_FILE, IT_RESOURCE }; - typedef HRESULT(*ParserCallback_t)(const char * szSection, const char * szKey, const char * szValue, IniParser * This); + typedef HRESULT(*ParserCallback_t)(const char *szSection, const char *szKey, const char *szValue, IniParser *This); - IniParser(TCHAR * szFileName, BYTE flags = FLAG_WITH_SETTINGS); + IniParser(TCHAR *szFileName, BYTE flags = FLAG_WITH_SETTINGS); IniParser(HINSTANCE hInst, const char *resourceName, const char *resourceType, BYTE flags = FLAG_ONLY_OBJECTS); ~IniParser(); bool CheckOK() { return _isValid; } HRESULT Parse(ParserCallback_t pLineCallBackProc, LPARAM lParam); - static HRESULT WriteStrToDb(const char * szSection, const char * szKey, const char * szValue, IniParser * This); - static int GetSkinFolder(IN const TCHAR * szFileName, OUT TCHAR * pszFolderName); + static HRESULT WriteStrToDb(const char *szSection, const char *szKey, const char *szValue, IniParser *This); + static int GetSkinFolder(IN const TCHAR *szFileName, OUT TCHAR *pszFolderName); private: // common @@ -93,24 +93,22 @@ private: int _nLine; void _DoInit(); - BOOL _DoParseLine(char * szLine); + BOOL _DoParseLine(char *szLine); // Processing File HRESULT _DoParseFile(); - FILE * _hFile; + FILE* _hFile; // Processing resource - void _LoadResourceIni(HINSTANCE hInst, const char * resourceName, const char * resourceType); + void _LoadResourceIni(HINSTANCE hInst, const char *resourceName, const char *resourceType); HRESULT _DoParseResource(); - const char * _RemoveTailings(const char * szLine, size_t& len); + const char* _RemoveTailings(const char *szLine, size_t &len); HGLOBAL _hGlobalRes; DWORD _dwSizeOfRes; - char * _pPosition; + char* _pPosition; BYTE _Flags; - - }; -- cgit v1.2.3