提交 d4231b35 编写于 作者: D Dong Zhihong

"fix unique_ptr error"

上级 ec115140
...@@ -22,7 +22,7 @@ VarDescBind *BlockDescBind::Var(const std::string &name) { ...@@ -22,7 +22,7 @@ VarDescBind *BlockDescBind::Var(const std::string &name) {
need_update_ = true; need_update_ = true;
auto it = vars_.find(name); auto it = vars_.find(name);
if (it != vars_.end()) { if (it != vars_.end()) {
return it->secon.get(); return it->second.get();
} }
auto *var = new VarDescBind(name); auto *var = new VarDescBind(name);
vars_[name].reset(var); vars_[name].reset(var);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册