From 268d9c3cc0414200ff5993763434e1810b523c31 Mon Sep 17 00:00:00 2001 From: ChunelFeng Date: Mon, 26 Aug 2024 23:46:59 +0800 Subject: [PATCH] [bugfix] remove link call. --- src/GraphCtrl/GraphElement/GAdapter/GSingleton/GSingleton.inl | 3 ++- src/GraphCtrl/GraphElement/GElement.cpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/GraphCtrl/GraphElement/GAdapter/GSingleton/GSingleton.inl b/src/GraphCtrl/GraphElement/GAdapter/GSingleton/GSingleton.inl index ed4ba795..459594a8 100644 --- a/src/GraphCtrl/GraphElement/GAdapter/GSingleton/GSingleton.inl +++ b/src/GraphCtrl/GraphElement/GAdapter/GSingleton/GSingleton.inl @@ -83,7 +83,8 @@ CStatus GSingleton::addElementInfo(const std::set &dependElement CGRAPH_FUNCTION_CHECK_STATUS // 这里,内部和外部均需要设定name信息 - this->setName(name)->setLoop(loop); + this->setName(name); + this->setLoop(loop); // 获取单例信息,然后将信息node中信息 auto element = dynamic_cast(s_singleton_.get()); element->name_ = name; diff --git a/src/GraphCtrl/GraphElement/GElement.cpp b/src/GraphCtrl/GraphElement/GElement.cpp index 0eea882c..4138261d 100644 --- a/src/GraphCtrl/GraphElement/GElement.cpp +++ b/src/GraphCtrl/GraphElement/GElement.cpp @@ -180,7 +180,8 @@ CStatus GElement::addElementInfo(const GElementPtrSet& dependElements, status = this->addDependGElements(dependElements); CGRAPH_FUNCTION_CHECK_STATUS - this->setName(name)->setLoop(loop); + this->setLoop(loop); + this->setName(name); CGRAPH_FUNCTION_END }