From 7074f35e4ba831e358117842b99ee35b87f85ae5 Mon Sep 17 00:00:00 2001 From: void_17 Date: Mon, 2 Mar 2026 15:58:20 +0700 Subject: 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. --- Minecraft.World/EntityIO.h | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'Minecraft.World/EntityIO.h') diff --git a/Minecraft.World/EntityIO.h b/Minecraft.World/EntityIO.h index c9aa9f65..be233d1d 100644 --- a/Minecraft.World/EntityIO.h +++ b/Minecraft.World/EntityIO.h @@ -44,12 +44,12 @@ private: public: static void staticCtor(); - static shared_ptr newEntity(const wstring& id, Level *level); - static shared_ptr loadStatic(CompoundTag *tag, Level *level); - static shared_ptr newById(int id, Level *level); - static shared_ptr newByEnumType(eINSTANCEOF eType, Level *level); - static int getId(shared_ptr entity); - static wstring getEncodeId(shared_ptr entity); + static std::shared_ptr newEntity(const wstring& id, Level *level); + static std::shared_ptr loadStatic(CompoundTag *tag, Level *level); + static std::shared_ptr newById(int id, Level *level); + static std::shared_ptr newByEnumType(eINSTANCEOF eType, Level *level); + static int getId(std::shared_ptr entity); + static wstring getEncodeId(std::shared_ptr entity); static int getId(const wstring &encodeId); static wstring getEncodeId(int entityIoValue); static int getNameId(int entityIoValue); -- cgit v1.2.3