aboutsummaryrefslogtreecommitdiff
path: root/Minecraft.Client/Gui.cpp
diff options
context:
space:
mode:
authorvoid_17 <heroerror3@gmail.com>2026-03-02 15:58:20 +0700
committervoid_17 <heroerror3@gmail.com>2026-03-02 15:58:20 +0700
commit7074f35e4ba831e358117842b99ee35b87f85ae5 (patch)
tree7d440d23473196af3056bf2ff4c59d9e740a06f5 /Minecraft.Client/Gui.cpp
parentd63f79325f85e014361eb8cf1e41eaebedb1ae71 (diff)
shared_ptr -> std::shared_ptr
This is one of the first commits in a plan to remove all `using namespace std;` lines in the entire codebase as it is considered anti-pattern today.
Diffstat (limited to 'Minecraft.Client/Gui.cpp')
-rw-r--r--Minecraft.Client/Gui.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/Minecraft.Client/Gui.cpp b/Minecraft.Client/Gui.cpp
index ffdf5055..ff1f407d 100644
--- a/Minecraft.Client/Gui.cpp
+++ b/Minecraft.Client/Gui.cpp
@@ -225,7 +225,7 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
// Display the pumpkin screen effect
/////////////////////////////////////////////////////////////////////////////////////
- shared_ptr<ItemInstance> headGear = minecraft->player->inventory->getArmor(3);
+ std::shared_ptr<ItemInstance> headGear = minecraft->player->inventory->getArmor(3);
// 4J-PB - changing this to be per player
//if (!minecraft->options->thirdPersonView && headGear != NULL && headGear->id == Tile::pumpkin_Id) renderPumpkin(screenWidth, screenHeight);
@@ -302,7 +302,7 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
minecraft->textures->bindTexture(TN_GUI_GUI); // 4J was L"/gui/gui.png"
MemSect(0);
- shared_ptr<Inventory> inventory = minecraft->player->inventory;
+ std::shared_ptr<Inventory> inventory = minecraft->player->inventory;
if(bTwoPlayerSplitscreen)
{
// need to apply scale factors depending on the mode
@@ -1027,7 +1027,7 @@ void Gui::render(float a, bool mouseFree, int xMouse, int yMouse)
// {
// if (EnderDragonRenderer::bossInstance == NULL) return;
//
-// shared_ptr<EnderDragon> boss = EnderDragonRenderer::bossInstance;
+// std::shared_ptr<EnderDragon> boss = EnderDragonRenderer::bossInstance;
// EnderDragonRenderer::bossInstance = NULL;
//
// Minecraft *pMinecraft=Minecraft::GetInstance();
@@ -1148,7 +1148,7 @@ void Gui::renderTp(float br, int w, int h)
void Gui::renderSlot(int slot, int x, int y, float a)
{
- shared_ptr<ItemInstance> item = minecraft->player->inventory->items[slot];
+ std::shared_ptr<ItemInstance> item = minecraft->player->inventory->items[slot];
if (item == NULL) return;
float pop = item->popTime - a;