From b9d67d14aff5c22977e2534b692fbba9d2a4f867 Mon Sep 17 00:00:00 2001 From: Tropical <42101043+tropicaaal@users.noreply.github.com> Date: Fri, 6 Mar 2026 11:59:50 -0600 Subject: [PATCH] refactor: unglob `std::endl` --- Minecraft.World/IO/NBT/CompoundTag.h | 4 ++-- Minecraft.World/IO/NBT/ListTag.h | 4 ++-- Minecraft.World/IO/NBT/Tag.cpp | 2 +- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/Minecraft.World/IO/NBT/CompoundTag.h b/Minecraft.World/IO/NBT/CompoundTag.h index 678523306..a79f244b1 100644 --- a/Minecraft.World/IO/NBT/CompoundTag.h +++ b/Minecraft.World/IO/NBT/CompoundTag.h @@ -222,7 +222,7 @@ public: { /* Tag::print(prefix, out); - out << prefix << "{" << endl; + out << prefix << "{" << std::endl; char *newPrefix = new char[ strlen(prefix) + 4 ]; strcpy( newPrefix, prefix); @@ -234,7 +234,7 @@ public: it->second->print(newPrefix, out); } delete[] newPrefix; - out << prefix << "}" << endl; + out << prefix << "}" << std::endl; */ } diff --git a/Minecraft.World/IO/NBT/ListTag.h b/Minecraft.World/IO/NBT/ListTag.h index 492503661..26ecb7301 100644 --- a/Minecraft.World/IO/NBT/ListTag.h +++ b/Minecraft.World/IO/NBT/ListTag.h @@ -51,7 +51,7 @@ public: { printf(prefix); - out << prefix << "{" << endl; + out << prefix << "{" << std::endl; char *newPrefix = new char[ strlen(prefix) + 4 ]; strcpy( newPrefix, prefix); @@ -60,7 +60,7 @@ public: for (AUTO_VAR(it, list.begin()); it != itEnd; it++) printf(newPrefix); delete[] newPrefix; - out << prefix << "}" << endl; + out << prefix << "}" << std::endl; } void add(T *tag) diff --git a/Minecraft.World/IO/NBT/Tag.cpp b/Minecraft.World/IO/NBT/Tag.cpp index 28cfcdf11..2445f13c5 100644 --- a/Minecraft.World/IO/NBT/Tag.cpp +++ b/Minecraft.World/IO/NBT/Tag.cpp @@ -63,7 +63,7 @@ void Tag::print(char *prefix, wostream out) out << L"(\"" << name << L"\")"; } out << L": "; - out << toString() << endl; + out << toString() << std::endl; } std::wstring Tag::getName()