From 0f9264444c57a1ca6346793078b3fec10dcb685d Mon Sep 17 00:00:00 2001 From: codeboss <2422523675@qq.com> Date: Sun, 29 Jun 2025 01:37:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=94=B9=E8=BF=9B=E6=8E=A5=E5=8F=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SimsBasic/internal_impl.cpp | 2 +- SimsBasic/simsbasic.h | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/SimsBasic/internal_impl.cpp b/SimsBasic/internal_impl.cpp index 1578c4c..648f19d 100644 --- a/SimsBasic/internal_impl.cpp +++ b/SimsBasic/internal_impl.cpp @@ -50,7 +50,7 @@ std::shared_ptr RtWsEntity::newDefault() const { newx->_runtime_name = this->_runtime_name; for (auto c : this->_comps_list) - newx->append(c->defaultNew()); + newx->append(std::static_pointer_cast(c->newDefault())); return newx; } diff --git a/SimsBasic/simsbasic.h b/SimsBasic/simsbasic.h index d96bee4..04e2b00 100644 --- a/SimsBasic/simsbasic.h +++ b/SimsBasic/simsbasic.h @@ -134,11 +134,6 @@ public: /// 插件名 virtual QString name() const = 0; - /// - /// 克隆一个具有相同数据的实例 - /// - /// 实例指针 - virtual std::shared_ptr defaultNew() const = 0; /// /// 绑定Entity ///