GUI: Use nullptr instead of 0 or NULL where appropriate
This commit is contained in:
parent
c566d02992
commit
6e1abf064a
45 changed files with 402 additions and 404 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue