This website works better with JavaScript
首页
发现
帮助
注册
登录
Hero3
/
vcmi
镜像自地址
https://github.com/vcmi/vcmi.git
关注
2
点赞
0
派生
0
文件
工单管理
0
Wiki
浏览代码
Fix ScopeGuard move behavior
nordsoft
2 年之前
父节点
4d6b88f10d
当前提交
91ef7cbb4f
共有
1 个文件被更改
,包括
2 次插入
和
1 次删除
合并视图
显示文件统计
2
1
lib/ScopeGuard.h
+ 2
- 1
lib/ScopeGuard.h
查看文件
@@ -37,7 +37,8 @@ namespace vstd
{}
{}
~ScopeGuard()
~ScopeGuard()
{
{
- f();
+ if(fire)
+ f();
}
}
};
};