From 8a881b2c479baf2bfe9a3eefa54dfe8c425acaea Mon Sep 17 00:00:00 2001 From: George Hazan Date: Wed, 18 Sep 2019 16:54:59 +0300 Subject: minor code cleaning --- plugins/Scriver/src/chat.h | 4 ++-- plugins/Scriver/src/chat_manager.cpp | 2 +- plugins/Scriver/src/chat_tools.cpp | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/plugins/Scriver/src/chat.h b/plugins/Scriver/src/chat.h index a33e7e5945..ae648917fb 100644 --- a/plugins/Scriver/src/chat.h +++ b/plugins/Scriver/src/chat.h @@ -71,11 +71,11 @@ void LoadMsgLogBitmaps(void); void FreeMsgLogBitmaps(void); // manager.c -SESSION_INFO* SM_FindSessionAutoComplete(const char* pszModule, SESSION_INFO* currSession, SESSION_INFO* prevSession, const wchar_t* pszOriginal, const wchar_t* pszCurrent); +SESSION_INFO* SM_FindSessionAutoComplete(const char *pszModule, SESSION_INFO *currSession, SESSION_INFO *prevSession, const wchar_t *pszOriginal, const wchar_t *pszCurrent); char SM_GetStatusIndicator(SESSION_INFO *si, USERINFO *ui); // tools.c -wchar_t* my_strstri(const wchar_t* s1, const wchar_t* s2) ; +const wchar_t* my_strstri(const wchar_t *s1, const wchar_t *s2); ///////////////////////////////////////////////////////////////////////////////////////// diff --git a/plugins/Scriver/src/chat_manager.cpp b/plugins/Scriver/src/chat_manager.cpp index c76d4e3179..16a1710f07 100644 --- a/plugins/Scriver/src/chat_manager.cpp +++ b/plugins/Scriver/src/chat_manager.cpp @@ -21,7 +21,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h" -SESSION_INFO* SM_FindSessionAutoComplete(const char* pszModule, SESSION_INFO *currSession, SESSION_INFO *prevSession, const wchar_t *pszOriginal, const wchar_t *pszCurrent) +SESSION_INFO* SM_FindSessionAutoComplete(const char *pszModule, SESSION_INFO *currSession, SESSION_INFO *prevSession, const wchar_t *pszOriginal, const wchar_t *pszCurrent) { SESSION_INFO *pResult = nullptr; if (prevSession == nullptr && my_strstri(currSession->ptszName, pszOriginal) == currSession->ptszName) diff --git a/plugins/Scriver/src/chat_tools.cpp b/plugins/Scriver/src/chat_tools.cpp index 18511598f0..c31cc839b2 100644 --- a/plugins/Scriver/src/chat_tools.cpp +++ b/plugins/Scriver/src/chat_tools.cpp @@ -21,12 +21,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. #include "stdafx.h" -wchar_t* my_strstri(const wchar_t* s1, const wchar_t* s2) +const wchar_t* my_strstri(const wchar_t *s1, const wchar_t *s2) { for (int i = 0; s1[i]; i++) for (int j = i, k = 0; towlower(s1[j]) == towlower(s2[k]); j++, k++) if (!s2[k + 1]) - return (wchar_t*)(s1 + i); + return s1 + i; return nullptr; } -- cgit v1.2.3