Merge branch 'master' of http://www.hyzgame.com:3000/hyzboy/CMCore
This commit is contained in:
@@ -77,4 +77,6 @@ namespace hgl
|
||||
name=nullptr; \
|
||||
} \
|
||||
}
|
||||
}//namespace hgl
|
||||
|
||||
#define SAFE_CLEAR_STD_MAP(name) {for(auto &it:name)delete it.second;}
|
||||
}//namespace hgl
|
||||
|
@@ -400,7 +400,7 @@ namespace hgl
|
||||
|
||||
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];
|
||||
|
||||
|
Reference in New Issue
Block a user