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/ByteArrayTag.hpp | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) (limited to 'src/NBT/ByteArrayTag.hpp') diff --git a/src/NBT/ByteArrayTag.hpp b/src/NBT/ByteArrayTag.hpp index 36d9fe7..1e4f2f9 100644 --- a/src/NBT/ByteArrayTag.hpp +++ b/src/NBT/ByteArrayTag.hpp @@ -36,17 +36,14 @@ namespace NBT { class ByteArrayTag : public Tag { private: - friend class Tag; - uint32_t len; const uint8_t *value; +public: ByteArrayTag(Buffer *buffer) { len = buffer->get32(); value = buffer->get(len); } - -public: virtual Type getType() const { return Type::ByteArray; } -- cgit v1.2.3