MCPcopy Create free account
hub / github.com/cinience/RedisStudio / ReleaseObject

Method ReleaseObject

RedisStudio/RedisDataUI.cpp:1045–1057  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1043}
1044
1045void RedisDataUI::ReleaseObject(std::size_t idx)
1046{
1047 if (m_oObjPool.size() > idx)
1048 {
1049 std::list<TkeyTree*>::const_iterator it = m_oObjPool[idx].begin();
1050 std::list<TkeyTree*>::const_iterator itend = m_oObjPool[idx].end();
1051 for ( ; it != itend; ++it)
1052 {
1053 delete (TkeyTree*)*it;
1054 }
1055 m_oObjPool[idx].clear();
1056 }
1057}
1058
1059CTreeNodeUI* RedisDataUI::NewNode(const string& text, bool isLeaf)
1060{

Callers

nothing calls this directly

Calls 2

sizeMethod · 0.45
clearMethod · 0.45

Tested by

no test coverage detected