21 lines
219 B
C++
21 lines
219 B
C++
#include <blue/core/object.hpp>
|
|
|
|
namespace blue::core
|
|
{
|
|
|
|
object::object(object &&other)
|
|
{
|
|
ptr_ = other.ptr_;
|
|
other.ptr_ = nullptr;
|
|
}
|
|
|
|
object::~object()
|
|
{
|
|
if (ptr_) {
|
|
b_object_unref(ptr_);
|
|
ptr_ = nullptr;
|
|
}
|
|
}
|
|
|
|
}
|