mirror of
https://git.huckle.dev/Huckles-Minecraft-Archive/4jcraft.git
synced 2026-07-08 21:11:03 +00:00
refactor: replace NULL with nullptr across C++ codebase
Excludes vendored C libs (zlib, Miles, DirectXMath, boost, Iggy).
This commit is contained in:
@@ -9,7 +9,7 @@ UIScene_HelpAndOptionsMenu::UIScene_HelpAndOptionsMenu(int iPad, void* initData,
|
||||
// Setup all the Iggy references we need for this scene
|
||||
initialiseMovie();
|
||||
|
||||
m_bNotInGame = (Minecraft::GetInstance()->level == NULL);
|
||||
m_bNotInGame = (Minecraft::GetInstance()->level == nullptr);
|
||||
|
||||
m_buttons[BUTTON_HAO_CHANGESKIN].init(IDS_CHANGE_SKIN,
|
||||
BUTTON_HAO_CHANGESKIN);
|
||||
@@ -36,7 +36,7 @@ UIScene_HelpAndOptionsMenu::UIScene_HelpAndOptionsMenu(int iPad, void* initData,
|
||||
|
||||
// 4J-PB - do not need a storage device to see this menu - just need one
|
||||
// when you choose to re-install them
|
||||
bool bNotInGame = (Minecraft::GetInstance()->level == NULL);
|
||||
bool bNotInGame = (Minecraft::GetInstance()->level == nullptr);
|
||||
|
||||
// any content to be re-installed?
|
||||
if (m_iPad == ProfileManager.GetPrimaryPad() && bNotInGame) {
|
||||
@@ -87,7 +87,7 @@ void UIScene_HelpAndOptionsMenu::updateTooltips() {
|
||||
}
|
||||
|
||||
void UIScene_HelpAndOptionsMenu::updateComponents() {
|
||||
bool bNotInGame = (Minecraft::GetInstance()->level == NULL);
|
||||
bool bNotInGame = (Minecraft::GetInstance()->level == nullptr);
|
||||
if (bNotInGame) {
|
||||
m_parentLayer->showComponent(m_iPad, eUIComponent_Panorama, true);
|
||||
m_parentLayer->showComponent(m_iPad, eUIComponent_Logo, true);
|
||||
@@ -111,7 +111,7 @@ void UIScene_HelpAndOptionsMenu::handleReload() {
|
||||
|
||||
// 4J-PB - do not need a storage device to see this menu - just need one
|
||||
// when you choose to re-install them
|
||||
bool bNotInGame = (Minecraft::GetInstance()->level == NULL);
|
||||
bool bNotInGame = (Minecraft::GetInstance()->level == nullptr);
|
||||
|
||||
// any content to be re-installed?
|
||||
if (m_iPad == ProfileManager.GetPrimaryPad() && bNotInGame) {
|
||||
|
||||
Reference in New Issue
Block a user