Add Vlist's cache

add functions to load Vlist's cache
This commit is contained in:
ZongyueQin 2017-07-15 11:06:26 +08:00 committed by GitHub
parent ec07a520e9
commit 820cf4efef
1 changed files with 5 additions and 5 deletions

View File

@ -627,12 +627,12 @@ IVTree::release(IVNode* _np) const
void
IVTree::AddIntoCache(TYPE_ENTITY_LITERAL_ID _id)
{
char* tmp = NULL;
unsigned len;
this->search(_id, tmp, len);
char* _tmp = NULL;
unsigned _len;
this->search(_id, _tmp, _len);
// cout << "len is " << len << endl;
this->value_list->AddIntoCache(_id, tmp, len);
delete [] tmp;
this->value_list->AddIntoCache(_id, _tmp, _len);
delete [] _tmp;
}
IVTree::~IVTree()