Skip to content
This repository has been archived by the owner on May 13, 2024. It is now read-only.

Commit

Permalink
nullptr
Browse files Browse the repository at this point in the history
  • Loading branch information
grorp committed Sep 29, 2023
1 parent 26237d5 commit 64d0374
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions source/Irrlicht/CGUIComboBox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ namespace gui
CGUIComboBox::CGUIComboBox(IGUIEnvironment* environment, IGUIElement* parent,
s32 id, core::rect<s32> rectangle)
: IGUIComboBox(environment, parent, id, rectangle),
ListButton(0), SelectedText(0), ListBox(0), LastFocus(0),
ListButton(nullptr), SelectedText(nullptr), ListBox(nullptr), LastFocus(nullptr),
Selected(-1), HAlign(EGUIA_UPPERLEFT), VAlign(EGUIA_CENTER), MaxSelectionRows(5), HasFocus(false),
ActiveFont(0)
ActiveFont(nullptr)
{
#ifdef _DEBUG
setDebugName("CGUIComboBox");
Expand Down Expand Up @@ -217,7 +217,7 @@ bool CGUIComboBox::OnEvent(const SEvent& event)
openCloseMenu();
}

ListButton->setPressed(ListBox == 0);
ListButton->setPressed(ListBox == nullptr);

return true;
}
Expand Down Expand Up @@ -370,7 +370,7 @@ void CGUIComboBox::sendSelectionChangedEvent()

event.EventType = EET_GUI_EVENT;
event.GUIEvent.Caller = this;
event.GUIEvent.Element = 0;
event.GUIEvent.Element = nullptr;
event.GUIEvent.EventType = EGET_COMBO_BOX_CHANGED;
Parent->OnEvent(event);
}
Expand Down Expand Up @@ -456,15 +456,15 @@ void CGUIComboBox::openCloseMenu()
// close list box
Environment->setFocus(this);
ListBox->remove();
ListBox = 0;
ListBox = nullptr;
}
else
{
if (Parent) {
SEvent event;
event.EventType = EET_GUI_EVENT;
event.GUIEvent.Caller = this;
event.GUIEvent.Element = 0;
event.GUIEvent.Element = nullptr;
event.GUIEvent.EventType = EGET_LISTBOX_OPENED;

// Allow to prevent the listbox from opening.
Expand Down

0 comments on commit 64d0374

Please sign in to comment.