Merge branch 'master' of http://www.hyzgame.com:3000/hyzboy/CMCore
This commit is contained in:
commit
511dd86c56
@ -77,4 +77,6 @@ namespace hgl
|
|||||||
name=nullptr; \
|
name=nullptr; \
|
||||||
} \
|
} \
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#define SAFE_CLEAR_STD_MAP(name) {for(auto &it:name)delete it.second;}
|
||||||
}//namespace hgl
|
}//namespace hgl
|
@ -400,7 +400,7 @@ namespace hgl
|
|||||||
|
|
||||||
if(need_length>malloc_length)
|
if(need_length>malloc_length)
|
||||||
{
|
{
|
||||||
malloc_length=power_to_2(need_length);
|
malloc_length=power_to_2(need_length+1);
|
||||||
|
|
||||||
T *new_str=new T[malloc_length];
|
T *new_str=new T[malloc_length];
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user