GUI: Use nullptr instead of 0 or NULL where appropriate

This commit is contained in:
Bastien Bouclet 2020-01-05 17:48:04 +01:00
parent c566d02992
commit 6e1abf064a
45 changed files with 402 additions and 404 deletions

View file

@ -58,7 +58,7 @@ void Widget::init() {
Widget::~Widget() {
delete _next;
_next = 0;
_next = nullptr;
}
void Widget::resize(int x, int y, int w, int h) {
@ -169,7 +169,7 @@ Widget *Widget::findWidgetInChain(Widget *w, const char *name) {
}
w = w->_next;
}
return 0;
return nullptr;
}
bool Widget::containsWidgetInChain(Widget *w, Widget *search) {