summaryrefslogtreecommitdiff
path: root/plugins/FloatingContacts/src/bitmap_funcs.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2014-01-04 19:26:46 +0000
committerGeorge Hazan <george.hazan@gmail.com>2014-01-04 19:26:46 +0000
commitfba57c10d9f9552c9c31c20283147348789ef650 (patch)
tree165c4c7ed8fad3c092bf455abf99af4a7a058383 /plugins/FloatingContacts/src/bitmap_funcs.cpp
parent73504917190e8d183212ec62ad1668d3e72901a7 (diff)
some code cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@7499 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/FloatingContacts/src/bitmap_funcs.cpp')
-rw-r--r--plugins/FloatingContacts/src/bitmap_funcs.cpp7
1 files changed, 2 insertions, 5 deletions
diff --git a/plugins/FloatingContacts/src/bitmap_funcs.cpp b/plugins/FloatingContacts/src/bitmap_funcs.cpp
index 36fb31a185..b6dc796822 100644
--- a/plugins/FloatingContacts/src/bitmap_funcs.cpp
+++ b/plugins/FloatingContacts/src/bitmap_funcs.cpp
@@ -65,8 +65,7 @@ MyBitmap::MyBitmap(const char *fn, const char *fnAlpha)
MyBitmap::~MyBitmap()
{
- if (bitsSave)
- delete [] bitsSave;
+ delete [] bitsSave;
free();
}
@@ -125,8 +124,7 @@ void MyBitmap::makeOpaqueRect(int x1, int y1, int x2, int y2)
void MyBitmap::saveAlpha(int x, int y, int w, int h)
{
- if (bitsSave)
- delete [] bitsSave;
+ delete [] bitsSave;
GdiFlush();
@@ -670,7 +668,6 @@ void MyBitmap::Blur(int w, int h)
src = buf_src;
tmp = buf_tmp;
- dst = buf_dst;
float mul = 1.f/((w*2+1)*(h*2+1));
for (y = 0;y<height;y++)