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 {
GuiObject::GuiObject(const Common::String &name) : _firstWidget(0) {
_name = name;
GuiObject::GuiObject(const Common::String &name)
: _x(-1000), _y(-1000), _w(0), _h(0), _name(name), _firstWidget(0) {
reflowLayout();
}