diff options
author | chai <chaifix@163.com> | 2018-11-25 00:11:28 +0800 |
---|---|---|
committer | chai <chaifix@163.com> | 2018-11-25 00:11:28 +0800 |
commit | e8e12b11db220160eb63727fb03548410bf3afd2 (patch) | |
tree | a36d62b783e97af9047469955b1aa0ddae6b4627 /src/lua/common/je_lua_shared.cpp | |
parent | 42421575d2e17b5c57ff0034c037b651bd6d1119 (diff) |
*misc
Diffstat (limited to 'src/lua/common/je_lua_shared.cpp')
-rw-r--r-- | src/lua/common/je_lua_shared.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lua/common/je_lua_shared.cpp b/src/lua/common/je_lua_shared.cpp index 55832fd..acf1494 100644 --- a/src/lua/common/je_lua_shared.cpp +++ b/src/lua/common/je_lua_shared.cpp @@ -36,7 +36,7 @@ namespace JinEngine { if (!isDependOn(key)) return; - std::map<int, SharedBase*>::iterator it = mDependencies.find(key); + DepsMap::iterator it = mDependencies.find(key); SharedBase* dep = it->second; // Remove lua reference. luax_removereference(mL, this, dep); @@ -46,7 +46,7 @@ namespace JinEngine void SharedBase::removeDependency(SharedBase* dependency) { - for (std::map<int, SharedBase*>::iterator it = mDependencies.begin(); it != mDependencies.end();) + for (DepsMap::iterator it = mDependencies.begin(); it != mDependencies.end();) { SharedBase* dep = it->second; if (dep == dependency) |