summaryrefslogtreecommitdiff
path: root/plugins/Scriver
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-09-18 16:54:59 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-09-18 16:54:59 +0300
commit8a881b2c479baf2bfe9a3eefa54dfe8c425acaea (patch)
tree10a3713b44a99e0b526f670f71e110a9a4bfc121 /plugins/Scriver
parentefea97930e985de136a600d692bda877cc2d2fef (diff)
minor code cleaning
Diffstat (limited to 'plugins/Scriver')
-rw-r--r--plugins/Scriver/src/chat.h4
-rw-r--r--plugins/Scriver/src/chat_manager.cpp2
-rw-r--r--plugins/Scriver/src/chat_tools.cpp4
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;
}