This website works better with JavaScript
Página inicial
Explorar
Ajuda
Registrar
Entrar
Hero3
/
vcmi
mirror de
https://github.com/vcmi/vcmi.git
Observar
2
Favorito
0
Fork
0
Arquivos
Issues
0
Wiki
Ver código fonte
Fix ScopeGuard move behavior
nordsoft
2 anos atrás
pai
4d6b88f10d
commit
91ef7cbb4f
1 arquivos alterados
com
2 adições
e
1 exclusões
Visão dividida
Mostrar estatísticas do Diff
2
1
lib/ScopeGuard.h
+ 2
- 1
lib/ScopeGuard.h
Ver arquivo
@@ -37,7 +37,8 @@ namespace vstd
{}
~ScopeGuard()
{
- f();
+ if(fire)
+ f();
}
};