diff options
author | George Hazan <ghazan@miranda.im> | 2019-03-12 12:41:25 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2019-03-12 12:41:25 +0300 |
commit | 6312425c1ad093cad87a688497728fdb12e24385 (patch) | |
tree | bc7a3afb533b19405849ed1c16bedec0df8ebe54 /plugins/SplashScreen | |
parent | 2799bc76e46d2444b14fdd1ca46245723c0de1f1 (diff) |
code cleaning
Diffstat (limited to 'plugins/SplashScreen')
-rw-r--r-- | plugins/SplashScreen/src/bitmap_funcs.cpp | 15 | ||||
-rw-r--r-- | plugins/SplashScreen/src/bitmap_funcs.h | 10 |
2 files changed, 5 insertions, 20 deletions
diff --git a/plugins/SplashScreen/src/bitmap_funcs.cpp b/plugins/SplashScreen/src/bitmap_funcs.cpp index 9918d28790..26ccc3a2d2 100644 --- a/plugins/SplashScreen/src/bitmap_funcs.cpp +++ b/plugins/SplashScreen/src/bitmap_funcs.cpp @@ -21,30 +21,15 @@ Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA MyBitmap::MyBitmap()
{
- dcBmp = nullptr;
- hBmp = nullptr;
- bits = nullptr;
- width = height = 0;
- bitsSave = nullptr;
}
MyBitmap::MyBitmap(int w, int h)
{
- dcBmp = nullptr;
- hBmp = nullptr;
- bits = nullptr;
- width = height = 0;
- bitsSave = nullptr;
allocate(w, h);
}
MyBitmap::MyBitmap(wchar_t *fn)
{
- dcBmp = nullptr;
- hBmp = nullptr;
- bits = nullptr;
- width = height = 0;
- bitsSave = nullptr;
loadFromFile(fn);
}
diff --git a/plugins/SplashScreen/src/bitmap_funcs.h b/plugins/SplashScreen/src/bitmap_funcs.h index 851b746e4d..05cbabc0ce 100644 --- a/plugins/SplashScreen/src/bitmap_funcs.h +++ b/plugins/SplashScreen/src/bitmap_funcs.h @@ -12,11 +12,11 @@ public: };
private:
- HBITMAP hBmpSave, hBmp;
- HDC dcBmp;
- COLOR32 *bits;
- COLOR32 *bitsSave;
- int width, height;
+ HBITMAP hBmpSave = 0, hBmp = 0;
+ HDC dcBmp = 0;
+ COLOR32 *bits = 0;
+ COLOR32 *bitsSave = 0;
+ int width = 0, height = 0;
void allocate(int w, int h);
void free();
|