From 5f80ab6450bfe7852624710f29c28a49c0782831 Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Wed, 27 Nov 2013 15:50:19 +0400 Subject: [PATCH] cc_base.h: make private initVarBasic and initVarItem, they are is called from constructors --- src/gui/components/cc_base.h | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/src/gui/components/cc_base.h b/src/gui/components/cc_base.h index 52dffe735..bf2eeb5cd 100644 --- a/src/gui/components/cc_base.h +++ b/src/gui/components/cc_base.h @@ -45,6 +45,8 @@ class CComponents private: ///pixel buffer handling, returns pixel buffer depends of given parameters fb_pixel_t* getScreen(int ax, int ay, int dx, int dy); + ///initialize of basic attributes, no parameters required + void initVarBasic(); protected: ///object: framebuffer object, usable in all sub classes @@ -97,8 +99,6 @@ class CComponents ///mode: true=allows painting of item, see also allowPaint() bool cc_allow_paint; - ///initialize of basic attributes, no parameters required - void initVarBasic(); ///rendering of framebuffer elements at once, ///elements are contained in v_fbdata, presumes added frambuffer elements with paintInit(), ///parameter do_save_bg=true, saves background of element to pixel buffer, this can be restore with hide() @@ -216,6 +216,9 @@ class CComponents class CComponentsItem : public CComponents { + private: + ///initialize all required attributes + void initVarItem(); protected: ///property: define of item type, see cc_types.h for possible types int cc_item_type; @@ -242,8 +245,6 @@ class CComponentsItem : public CComponents ///an item will be hide or overpainted with other methods, or it's embedded (bound) in a parent form. void paintInit(bool do_save_bg); - ///initialize all required attributes - void initVarItem(); public: CComponentsItem();