diff options
author | George Hazan <george.hazan@gmail.com> | 2014-03-23 15:39:15 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-03-23 15:39:15 +0000 |
commit | c6b5672f802accd3ca3d27eb9ab050c7b0923eb2 (patch) | |
tree | c3b1e042d22579adda026c55e10d4df1fbad2720 /src/modules/langpack | |
parent | 78ab52bd0f53b89ed2f67c26f897e2c73c59e946 (diff) |
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@8708 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/langpack')
-rw-r--r-- | src/modules/langpack/lpservices.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/modules/langpack/lpservices.cpp b/src/modules/langpack/lpservices.cpp index 1e4f565058..c686200e91 100644 --- a/src/modules/langpack/lpservices.cpp +++ b/src/modules/langpack/lpservices.cpp @@ -47,7 +47,7 @@ static INT_PTR srvRegisterLP(WPARAM wParam, LPARAM lParam) {
PLUGININFOEX* ppi = (PLUGININFOEX*)lParam;
if (wParam && ppi)
- *( int* )wParam = GetPluginFakeId(ppi->uuid, Langpack_MarkPluginLoaded(ppi));
+ *(int*)wParam = GetPluginFakeId(ppi->uuid, Langpack_MarkPluginLoaded(ppi));
return 0;
}
@@ -69,22 +69,22 @@ static INT_PTR srvGetDefaultLocale(WPARAM, LPARAM) static INT_PTR srvPcharToTchar(WPARAM wParam, LPARAM lParam)
{
- char* pszStr = (char*)lParam;
+ char *pszStr = (char*)lParam;
if (pszStr == NULL)
return NULL;
int len = (int)strlen(pszStr);
- TCHAR* result = (TCHAR*)alloca((len+1)*sizeof(TCHAR));
+ TCHAR *result = (TCHAR*)alloca((len+1)*sizeof(TCHAR));
MultiByteToWideChar(Langpack_GetDefaultCodePage(), 0, pszStr, -1, result, len);
result[len] = 0;
- return (INT_PTR)mir_wstrdup( TranslateW_LP(result, wParam));
+ return (INT_PTR)mir_wstrdup(TranslateW_LP(result, wParam));
}
/////////////////////////////////////////////////////////////////////////////////////////
static INT_PTR srvReloadLangpack(WPARAM wParam, LPARAM lParam)
{
- ReloadLangpack(( TCHAR* )lParam);
+ ReloadLangpack((TCHAR*)lParam);
return 0;
}
@@ -92,7 +92,7 @@ static INT_PTR srvReloadLangpack(WPARAM wParam, LPARAM lParam) static INT_PTR srvGetPluginLangpack(WPARAM wParam, LPARAM lParam)
{
- return GetPluginLangByInstance(( HINSTANCE )lParam);
+ return GetPluginLangByInstance((HINSTANCE)lParam);
}
/////////////////////////////////////////////////////////////////////////////////////////
|