From bd9841778fdcf06c87ddcad19669779ea15c6111 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 13 Dec 2014 21:45:17 +0000 Subject: Scriver: warning level 4 git-svn-id: http://svn.miranda-ng.org/main/trunk@11382 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Scriver/src/msgoptions.cpp | 17 ++++++----------- 1 file changed, 6 insertions(+), 11 deletions(-) (limited to 'plugins/Scriver/src/msgoptions.cpp') diff --git a/plugins/Scriver/src/msgoptions.cpp b/plugins/Scriver/src/msgoptions.cpp index 682bf76cbe..45f515f07a 100644 --- a/plugins/Scriver/src/msgoptions.cpp +++ b/plugins/Scriver/src/msgoptions.cpp @@ -95,7 +95,7 @@ static const colourOptionsList[] = { { LPGENT("Line between messages"), SRMSGSET_LINECOLOUR, 0, COLOR_3DLIGHT}, }; -int FontServiceFontsChanged(WPARAM wParam, LPARAM lParam) +int FontServiceFontsChanged(WPARAM, LPARAM) { LoadMsgLogIcons(); LoadInfobarFonts(); @@ -103,11 +103,6 @@ int FontServiceFontsChanged(WPARAM wParam, LPARAM lParam) return 0; } -static BYTE MsgDlgGetFontDefaultCharset(const TCHAR *szFont) -{ - return DEFAULT_CHARSET; -} - void RegisterFontServiceFonts() { int i; @@ -126,7 +121,7 @@ void RegisterFontServiceFonts() fid.deffontsettings.colour = fontOptionsList[i].defColour; fid.deffontsettings.size = fontOptionsList[i].defSize; fid.deffontsettings.style = fontOptionsList[i].defStyle; - fid.deffontsettings.charset = MsgDlgGetFontDefaultCharset(fontOptionsList[i].szDefFace); + fid.deffontsettings.charset = DEFAULT_CHARSET; _tcsncpy(fid.deffontsettings.szFace, fontOptionsList[i].szDefFace, SIZEOF(fid.deffontsettings.szFace)); _tcsncpy(fid.backgroundName, fontOptionsList[i].szBkgName, SIZEOF(fid.backgroundName)); FontRegisterT(&fid); @@ -149,7 +144,7 @@ void RegisterFontServiceFonts() } } -int IconsChanged(WPARAM wParam, LPARAM lParam) +int IconsChanged(WPARAM, LPARAM) { ReleaseIcons(); LoadGlobalIcons(); @@ -161,7 +156,7 @@ int IconsChanged(WPARAM wParam, LPARAM lParam) return 0; } -int SmileySettingsChanged(WPARAM wParam, LPARAM lParam) +int SmileySettingsChanged(WPARAM wParam, LPARAM) { WindowList_Broadcast(g_dat.hMessageWindowList, DM_REMAKELOG, wParam, 0); return 0; @@ -201,7 +196,7 @@ void LoadMsgDlgFont(int i, LOGFONT *lf, COLORREF *colour) _tcsncpy(lf->lfFaceName, tszFace, SIZEOF(lf->lfFaceName)); mir_snprintf(str, SIZEOF(str), "%s%dSet", "SRMFont", i); - lf->lfCharSet = db_get_b(NULL, SRMMMOD, str, MsgDlgGetFontDefaultCharset(lf->lfFaceName)); + lf->lfCharSet = db_get_b(NULL, SRMMMOD, str, DEFAULT_CHARSET); } } @@ -956,7 +951,7 @@ static INT_PTR CALLBACK DlgProcTypeOptions(HWND hwndDlg, UINT msg, WPARAM wParam return FALSE; } -int OptInitialise(WPARAM wParam, LPARAM lParam) +int OptInitialise(WPARAM wParam, LPARAM) { OPTIONSDIALOGPAGE odp = { sizeof(odp) }; odp.position = 910000000; -- cgit v1.2.3