GUI: Make GuiObject::_name const, init all members in constructor

svn-id: r48275
This commit is contained in:
Max Horn 2010-03-18 15:04:15 +00:00
parent 80a8111193
commit a17bbf3c2e
2 changed files with 3 additions and 3 deletions

View file

@ -30,8 +30,8 @@
namespace GUI { namespace GUI {
GuiObject::GuiObject(const Common::String &name) : _firstWidget(0) { GuiObject::GuiObject(const Common::String &name)
_name = name; : _x(-1000), _y(-1000), _w(0), _h(0), _name(name), _firstWidget(0) {
reflowLayout(); reflowLayout();
} }

View file

@ -62,7 +62,7 @@ class GuiObject : public CommandReceiver {
protected: protected:
int16 _x, _y; int16 _x, _y;
uint16 _w, _h; uint16 _w, _h;
Common::String _name; const Common::String _name;
Widget *_firstWidget; Widget *_firstWidget;