namespace Msp {
namespace GLtk {
-Widget::Widget():
- style(0),
- state(NORMAL),
- visible(true),
- input_type(INPUT_NONE),
- parent(0),
- rebuild_needed(false)
-{ }
-
Widget::~Widget()
{
if(parent)
{
Container *p = parent;
- parent = 0;
+ parent = nullptr;
p->remove(*this);
}
}
catch(...)
{
// The container has not yet added the widget as its child
- parent = 0;
+ parent = nullptr;
throw;
}
}
for(top=this; top->parent; top=top->parent) ;
Root *root = dynamic_cast<Root *>(top);
if(!root)
- style = 0;
+ style = nullptr;
else
{
string sname = get_class();