Skip to content

Commit

Permalink
[bugfix] remove link call.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChunelFeng committed Aug 26, 2024
1 parent 1a3e3fb commit 268d9c3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@ CStatus GSingleton<T>::addElementInfo(const std::set<GElementPtr> &dependElement
CGRAPH_FUNCTION_CHECK_STATUS

// 这里,内部和外部均需要设定name信息
this->setName(name)->setLoop(loop);
this->setName(name);
this->setLoop(loop);
// 获取单例信息,然后将信息node中信息
auto element = dynamic_cast<T *>(s_singleton_.get());
element->name_ = name;
Expand Down
3 changes: 2 additions & 1 deletion src/GraphCtrl/GraphElement/GElement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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
}

Expand Down

0 comments on commit 268d9c3

Please sign in to comment.