From 6312425c1ad093cad87a688497728fdb12e24385 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Tue, 12 Mar 2019 12:41:25 +0300 Subject: code cleaning --- plugins/SplashScreen/src/bitmap_funcs.cpp | 15 --------------- plugins/SplashScreen/src/bitmap_funcs.h | 10 +++++----- 2 files changed, 5 insertions(+), 20 deletions(-) (limited to 'plugins/SplashScreen/src') 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(); -- cgit v1.2.3