summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/svc_email.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2013-03-28 14:55:49 +0000
committerGeorge Hazan <george.hazan@gmail.com>2013-03-28 14:55:49 +0000
commit056d2be888a4235a109a123b7b2a715aa3ff72ba (patch)
treeb1956081bb951f44ced81414db7656a832613b71 /plugins/UserInfoEx/src/svc_email.cpp
parent5f03619d3bbda7a617f50ded2698cffc434dd525 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@4225 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/svc_email.cpp')
-rw-r--r--plugins/UserInfoEx/src/svc_email.cpp22
1 files changed, 11 insertions, 11 deletions
diff --git a/plugins/UserInfoEx/src/svc_email.cpp b/plugins/UserInfoEx/src/svc_email.cpp
index 0b70235656..b0d5b382ec 100644
--- a/plugins/UserInfoEx/src/svc_email.cpp
+++ b/plugins/UserInfoEx/src/svc_email.cpp
@@ -51,7 +51,7 @@ static LPSTR Get(HANDLE hContact)
{ SET_CONTACT_COMPANY_EMAIL, SET_CONTACT_COMPANY_EMAIL0, SET_CONTACT_COMPANY_EMAIL1, "MyCompanye-mail0"}
};
- INT i, j;
+ int i, j;
LPSTR pszEMail;
for (i = 0; i < 2; i++)
@@ -85,7 +85,7 @@ static LPSTR Get(HANDLE hContact)
**/
static INT_PTR MenuCommand(WPARAM wParam,LPARAM lParam)
{
- INT result;
+ int result;
LPSTR val = NULL;
__try
@@ -135,7 +135,7 @@ static INT_PTR MenuCommand(WPARAM wParam,LPARAM lParam)
* @param wParam - handle to the contact whose extra icon is to apply
* @param lParam - not used
**/
-static INT OnCListApplyIcons(WPARAM wParam, LPARAM lParam)
+static int OnCListApplyIcons(WPARAM wParam, LPARAM lParam)
{
LPSTR val = Get((HANDLE)wParam);
ExtraIcon_SetIcon(ghExtraIconSvc, (HANDLE)wParam, (val) ? ICO_BTN_EMAIL: 0);
@@ -149,7 +149,7 @@ static INT OnCListApplyIcons(WPARAM wParam, LPARAM lParam)
* @param wParam - (HANDLE)hContact
* @param lParam - (DBCONTACTWRITESETTING*)pdbcws
**/
-static INT OnContactSettingChanged(HANDLE hContact, DBCONTACTWRITESETTING* pdbcws)
+static int OnContactSettingChanged(HANDLE hContact, DBCONTACTWRITESETTING* pdbcws)
{
if (hContact && pdbcws && pdbcws->szSetting &&
((pdbcws->value.type & DBVTF_VARIABLELENGTH) || (pdbcws->value.type == DBVT_DELETED)) &&
@@ -170,7 +170,7 @@ static INT OnContactSettingChanged(HANDLE hContact, DBCONTACTWRITESETTING* pdbcw
*
* @return always 0
**/
-static INT OnPreBuildMenu(WPARAM wParam, LPARAM lParam)
+static int OnPreBuildMenu(WPARAM wParam, LPARAM lParam)
{
CLISTMENUITEM mi = { sizeof(mi) };
mi.flags = CMIM_FLAGS;
@@ -192,7 +192,7 @@ static INT OnPreBuildMenu(WPARAM wParam, LPARAM lParam)
/**
* This function enables or disables menuitems.
**/
-VOID SvcEMailRebuildMenu()
+void SvcEMailRebuildMenu()
{
static HANDLE hPrebuildMenuHook = NULL;
@@ -235,7 +235,7 @@ VOID SvcEMailRebuildMenu()
* @param wParam - handle to the contact whose extra icon is to apply
* @param lParam - not used
**/
-VOID SvcEMailApplyCListIcons()
+void SvcEMailApplyCListIcons()
{
HANDLE hContact;
@@ -252,7 +252,7 @@ VOID SvcEMailApplyCListIcons()
* @param bEnable - determines whether icons are enabled or not
* @param bUpdateDB - if true the database setting is updated, too.
**/
-VOID SvcEMailEnableExtraIcons(BOOLEAN bEnable, BOOLEAN bUpdateDB)
+void SvcEMailEnableExtraIcons(BYTE bEnable, BYTE bUpdateDB)
{
if (bUpdateDB)
DB::Setting::WriteByte(SET_CLIST_EXTRAICON_EMAIL, bEnable);
@@ -288,7 +288,7 @@ VOID SvcEMailEnableExtraIcons(BOOLEAN bEnable, BOOLEAN bUpdateDB)
/**
* This function initially loads the module uppon startup.
**/
-VOID SvcEMailOnModulesLoaded()
+void SvcEMailOnModulesLoaded()
{
SvcEMailEnableExtraIcons(
DB::Setting::GetByte(SET_CLIST_EXTRAICON_EMAIL,
@@ -298,7 +298,7 @@ VOID SvcEMailOnModulesLoaded()
/**
* This function initially loads the module uppon startup.
**/
-VOID SvcEMailLoadModule()
+void SvcEMailLoadModule()
{
if (DB::Setting::GetByte(SET_EXTENDED_EMAILSERVICE, TRUE)) {
// create own email send command
@@ -314,7 +314,7 @@ VOID SvcEMailLoadModule()
*
* @return nothing
**/
-VOID SvcEMailUnloadModule()
+void SvcEMailUnloadModule()
{
// unhook event handlers
UnhookEvent(hChangedHook); hChangedHook = NULL;