summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2016-06-12 10:57:29 +0000
committerGeorge Hazan <george.hazan@gmail.com>2016-06-12 10:57:29 +0000
commitb385ab819019ec29cd44e9c9e6ae8be333298ef2 (patch)
tree84752003df7ec122d2e6e50cd651acd05a771ea4 /plugins/Clist_modern
parentf99f0228cbfc908812ebbeec6415818dd5650010 (diff)
code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@16950 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_modern')
-rw-r--r--plugins/Clist_modern/src/modern_aniavatars.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/Clist_modern/src/modern_aniavatars.cpp b/plugins/Clist_modern/src/modern_aniavatars.cpp
index c6d731ae1f..fe7a2fd8e6 100644
--- a/plugins/Clist_modern/src/modern_aniavatars.cpp
+++ b/plugins/Clist_modern/src/modern_aniavatars.cpp
@@ -289,7 +289,7 @@ static void _AniAva_RemoveAniAvaDC()
static void _AniAva_RealRemoveAvatar(DWORD UniqueID)
{
for (int j = 0; j < s_AniAvatarList.getCount(); j++) {
- ANIAVA_INFO *aai = (ANIAVA_INFO *)s_AniAvatarList[j];
+ ANIAVA_INFO *aai = s_AniAvatarList[j];
if (aai->dwAvatarUniqId == UniqueID) {
aai->nRefCount--;
if (aai->nRefCount == 0) {
@@ -300,7 +300,7 @@ static void _AniAva_RealRemoveAvatar(DWORD UniqueID)
_AniAva_ReduceAvatarImages(aai->nStripTop, aai->FrameSize.cx*aai->nFrameCount, FALSE);
for (int k = 0; k < s_AniAvatarList.getCount(); k++) {
if (k != j) {
- ANIAVA_INFO *taai = (ANIAVA_INFO *)s_AniAvatarList[k];
+ ANIAVA_INFO *taai = s_AniAvatarList[k];
if (taai->nStripTop>aai->nStripTop)
taai->nStripTop -= aai->FrameSize.cx*aai->nFrameCount;
}
@@ -311,7 +311,7 @@ static void _AniAva_RealRemoveAvatar(DWORD UniqueID)
int newHeight = 0;
for (int i = 0; i < s_AniAvatarList.getCount(); i++)
if (i != j)
- newHeight = max(newHeight, ((ANIAVA_INFO *)s_AniAvatarList[i])->FrameSize.cy);
+ newHeight = max(newHeight, s_AniAvatarList[i]->FrameSize.cy);
HDC hNewDC = CreateCompatibleDC(NULL);
HBITMAP hNewBmp = ske_CreateDIB32(newWidth, newHeight);
@@ -397,7 +397,7 @@ static int _AniAva_LoadAvatarFromImage(TCHAR * szFileName, int width, int height
GdiFlush();
_AniAva_ResumePainting();
}
- else paai = (ANIAVA_INFO*)s_AniAvatarList[idx];
+ else paai = s_AniAvatarList[idx];
if (paai == NULL)
return 0;