From 59fe1ba0255e5e1c4a24658f7ccc34dc294aeb50 Mon Sep 17 00:00:00 2001 From: Matthias Schiffer Date: Sat, 21 Jul 2018 16:17:40 +0200 Subject: NBT: make Tag constructors public, remove friend declarations --- src/NBT/ByteTag.hpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src/NBT/ByteTag.hpp') diff --git a/src/NBT/ByteTag.hpp b/src/NBT/ByteTag.hpp index dc7e212..28b8b1a 100644 --- a/src/NBT/ByteTag.hpp +++ b/src/NBT/ByteTag.hpp @@ -34,15 +34,13 @@ namespace NBT { class ByteTag : public Tag { private: - friend class Tag; - uint8_t value; +public: ByteTag(Buffer *buffer) { value = buffer->get8(); } -public: virtual Type getType() const { return Type::Byte; } -- cgit v1.2.3