From 95f8e803d3557f4bac1a7b4ef6bca116d64a5ea9 Mon Sep 17 00:00:00 2001 From: hyzboy Date: Thu, 23 Jul 2020 18:25:02 +0800 Subject: [PATCH] add AutoDelete structfunction --- inc/hgl/type/Smart.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/inc/hgl/type/Smart.h b/inc/hgl/type/Smart.h index 2949eff..4d36f05 100644 --- a/inc/hgl/type/Smart.h +++ b/inc/hgl/type/Smart.h @@ -462,6 +462,11 @@ namespace hgl public: + AutoDelete() + { + obj=nullptr; + } + AutoDelete(T *o) { obj=o;