From f3ac01c76e04183679ae1baba1e9c687b019baae Mon Sep 17 00:00:00 2001 From: Tropical <42101043+tropicaaal@users.noreply.github.com> Date: Fri, 6 Mar 2026 12:02:08 -0600 Subject: [PATCH] refactor: unglob `std::(w)ostream` --- Minecraft.World/IO/NBT/CompoundTag.h | 2 +- Minecraft.World/IO/NBT/ListTag.h | 2 +- Minecraft.World/IO/NBT/Tag.cpp | 4 ++-- Minecraft.World/IO/NBT/Tag.h | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Minecraft.World/IO/NBT/CompoundTag.h b/Minecraft.World/IO/NBT/CompoundTag.h index a79f244b1..45b840538 100644 --- a/Minecraft.World/IO/NBT/CompoundTag.h +++ b/Minecraft.World/IO/NBT/CompoundTag.h @@ -218,7 +218,7 @@ public: return std::wstring( buf ); } - void print(char *prefix, ostream out) + void print(char *prefix, std::ostream out) { /* Tag::print(prefix, out); diff --git a/Minecraft.World/IO/NBT/ListTag.h b/Minecraft.World/IO/NBT/ListTag.h index 26ecb7301..e7a44ab28 100644 --- a/Minecraft.World/IO/NBT/ListTag.h +++ b/Minecraft.World/IO/NBT/ListTag.h @@ -47,7 +47,7 @@ public: return std::wstring( buf ); } - void print(char *prefix, ostream out) + void print(char *prefix, std::ostream out) { printf(prefix); diff --git a/Minecraft.World/IO/NBT/Tag.cpp b/Minecraft.World/IO/NBT/Tag.cpp index 2445f13c5..2a08cf28f 100644 --- a/Minecraft.World/IO/NBT/Tag.cpp +++ b/Minecraft.World/IO/NBT/Tag.cpp @@ -47,12 +47,12 @@ bool Tag::equals(Tag *obj) return true; } -void Tag::print(ostream out) +void Tag::print(std::ostream out) { out << ""; } -void Tag::print(char *prefix, wostream out) +void Tag::print(char *prefix, std::wostream out) { std::wstring name = getName(); diff --git a/Minecraft.World/IO/NBT/Tag.h b/Minecraft.World/IO/NBT/Tag.h index 2c00d4e88..86b31b0d0 100644 --- a/Minecraft.World/IO/NBT/Tag.h +++ b/Minecraft.World/IO/NBT/Tag.h @@ -31,8 +31,8 @@ public: virtual void load(DataInput *dis) = 0; virtual std::wstring toString() = 0; virtual uint8_t getId() = 0; - void print(ostream out); - void print(char *prefix, wostream out); + void print(std::ostream out); + void print(char *prefix, std::wostream out); std::wstring getName(); Tag *setName(const std::wstring& name); static Tag *readNamedTag(DataInput *dis);