summaryrefslogtreecommitdiff
path: root/plugins/UserInfoEx/src/svc_avatar.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_avatar.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_avatar.cpp')
-rw-r--r--plugins/UserInfoEx/src/svc_avatar.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/plugins/UserInfoEx/src/svc_avatar.cpp b/plugins/UserInfoEx/src/svc_avatar.cpp
index c68a705d97..c82965f96c 100644
--- a/plugins/UserInfoEx/src/svc_avatar.cpp
+++ b/plugins/UserInfoEx/src/svc_avatar.cpp
@@ -28,7 +28,7 @@ namespace NServices
static HANDLE ghChangedHook = NULL;
- static INT GetContactAvatarFileName(LPCTSTR zodiac, LPSTR szFileName, INT cchFileName)
+ static int GetContactAvatarFileName(LPCTSTR zodiac, LPSTR szFileName, int cchFileName)
{
if (!CallService(MS_DB_GETPROFILEPATH, (WPARAM)cchFileName, (LPARAM)szFileName))
{
@@ -50,7 +50,7 @@ namespace NServices
*
*
**/
- static VOID SetZodiacAvatar(HANDLE hContact)
+ static void SetZodiacAvatar(HANDLE hContact)
{
MAnnivDate mtb;
@@ -81,7 +81,7 @@ namespace NServices
}
}
- VOID DeleteAvatar(HANDLE hContact)
+ void DeleteAvatar(HANDLE hContact)
{
if (hContact && DB::Setting::GetByte(hContact, "ContactPhoto", "IsZodiac", FALSE))
{
@@ -113,7 +113,7 @@ namespace NServices
*
*
**/
- static INT OnAvatarChanged(HANDLE hContact, AVATARCACHEENTRY *ace)
+ static int OnAvatarChanged(HANDLE hContact, AVATARCACHEENTRY *ace)
{
if (hContact)
{
@@ -149,7 +149,7 @@ namespace NServices
*
*
**/
- VOID Enable(BOOLEAN bEnable)
+ void Enable(BYTE bEnable)
{
HANDLE hContact;
DBVARIANT dbv;
@@ -165,7 +165,7 @@ namespace NServices
// don't set if avatar is locked!
if (!DB::Setting::GetByte(hContact, "ContactPhoto", "Locked", 0))
{
- BOOLEAN bInvalidAvatar = TRUE;
+ BYTE bInvalidAvatar = TRUE;
// the relative file is valid
if (!DB::Setting::GetAString(hContact, "ContactPhoto", "RFile", &dbv))
@@ -226,7 +226,7 @@ namespace NServices
* params: none
* return: 0
**/
- VOID OnModulesLoaded()
+ void OnModulesLoaded()
{
Enable(DB::Setting::GetByte(SET_ZODIAC_AVATARS, FALSE));
}