From 68240157289969c44b98b1f5e0c22db3a9983c01 Mon Sep 17 00:00:00 2001 From: CHatingPython Date: Sat, 6 Jun 2026 22:57:35 +0200 Subject: [PATCH] refactor(furvm): implement thing constructor --- furvm/include/furvm/thing.hpp | 2 +- furvm/src/thing.cpp | 10 ++++++++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/furvm/include/furvm/thing.hpp b/furvm/include/furvm/thing.hpp index 839331d..6e76bf8 100644 --- a/furvm/include/furvm/thing.hpp +++ b/furvm/include/furvm/thing.hpp @@ -51,7 +51,7 @@ private: thing_t m_type; std::shared_ptr m_context; - void* m_data; + void* m_data = nullptr; }; } // namespace furvm diff --git a/furvm/src/thing.cpp b/furvm/src/thing.cpp index e69de29..ca59f61 100644 --- a/furvm/src/thing.cpp +++ b/furvm/src/thing.cpp @@ -0,0 +1,10 @@ +#include "furvm/thing.hpp" + +namespace furvm { + +thing::thing(rzecz, thing_handle id, thing_t type, const std::shared_ptr& context) + : m_id(id), m_type(type), m_context(context) {} + +thing::~thing() {} + +} // namespace furvm \ No newline at end of file