X-Git-Url: http://git.tdb.fi/?p=libs%2Fgltk.git;a=blobdiff_plain;f=source%2Fwidget.cpp;fp=source%2Fwidget.cpp;h=4d990009d81002ece8cc5a8caeb2ac73606e0b3c;hp=0181e451e95163f40d67c06fda793dceb554e55b;hb=81c4024fb6acf37df702a803dc4efdf82a81525a;hpb=9f38197854e699a6093a906ab43f4238f3cd2388 diff --git a/source/widget.cpp b/source/widget.cpp index 0181e45..4d99000 100644 --- a/source/widget.cpp +++ b/source/widget.cpp @@ -15,7 +15,7 @@ Widget::~Widget() if(parent) { Container *p = parent; - parent = 0; + parent = nullptr; p->remove(*this); } } @@ -110,7 +110,7 @@ void Widget::set_parent(Container *p) catch(...) { // The container has not yet added the widget as its child - parent = 0; + parent = nullptr; throw; } } @@ -127,7 +127,7 @@ void Widget::update_style() for(top=this; top->parent; top=top->parent) ; Root *root = dynamic_cast(top); if(!root) - style = 0; + style = nullptr; else { string sname = get_class();