diff options
author | George Hazan <george.hazan@gmail.com> | 2014-12-13 21:45:17 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2014-12-13 21:45:17 +0000 |
commit | bd9841778fdcf06c87ddcad19669779ea15c6111 (patch) | |
tree | 755f73a8a48c86df66d2b15f9b481203bcba1672 /plugins/Scriver/src/msgoptions.cpp | |
parent | 80773d07115cf8d2874d49f6e2378f736db771f6 (diff) |
Scriver: warning level 4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11382 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Scriver/src/msgoptions.cpp')
-rw-r--r-- | plugins/Scriver/src/msgoptions.cpp | 17 |
1 files changed, 6 insertions, 11 deletions
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;
|