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

@ -35,7 +35,7 @@ GuiObject::GuiObject(const Common::String &name)
GuiObject::~GuiObject() {
delete _firstWidget;
_firstWidget = 0;
_firstWidget = nullptr;
}
void GuiObject::reflowLayout() {
@ -49,7 +49,7 @@ void GuiObject::reflowLayout() {
void GuiObject::removeWidget(Widget *del) {
if (del == _firstWidget) {
Widget *del_next = del->next();
del->setNext(0);
del->setNext(nullptr);
_firstWidget = del_next;
return;
}
@ -58,7 +58,7 @@ void GuiObject::removeWidget(Widget *del) {
while (w) {
if (w->next() == del) {
Widget *del_next = del->next();
del->setNext(0);
del->setNext(nullptr);
w->setNext(del_next);
return;
}