改进接口
This commit is contained in:
parent
d4e5782539
commit
0f9264444c
|
@ -50,7 +50,7 @@ std::shared_ptr<Serializable> RtWsEntity::newDefault() const {
|
||||||
newx->_runtime_name = this->_runtime_name;
|
newx->_runtime_name = this->_runtime_name;
|
||||||
|
|
||||||
for (auto c : this->_comps_list)
|
for (auto c : this->_comps_list)
|
||||||
newx->append(c->defaultNew());
|
newx->append(std::static_pointer_cast<WsComponent>(c->newDefault()));
|
||||||
return newx;
|
return newx;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -134,11 +134,6 @@ public:
|
||||||
/// <returns>插件名</returns>
|
/// <returns>插件名</returns>
|
||||||
virtual QString name() const = 0;
|
virtual QString name() const = 0;
|
||||||
|
|
||||||
/// <summary>
|
|
||||||
/// 克隆一个具有相同数据的实例
|
|
||||||
/// </summary>
|
|
||||||
/// <returns>实例指针</returns>
|
|
||||||
virtual std::shared_ptr<WsComponent> defaultNew() const = 0;
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// 绑定Entity
|
/// 绑定Entity
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
Loading…
Reference in New Issue