add last backwards-compatible version
This commit is contained in:
@@ -194,7 +194,6 @@ namespace pfc {
|
||||
int result = compare(p_base->m_content,p_search);
|
||||
if (result > 0) {
|
||||
t_node * ret = g_find_or_add_node<t_search>(p_base->m_left,p_base.get_ptr(),p_search,p_new);
|
||||
PFC_ASSERT(compare(ret->m_content, p_search) == 0);
|
||||
if (p_new) {
|
||||
recalc_depth(p_base);
|
||||
g_rebalance(p_base);
|
||||
@@ -202,7 +201,6 @@ namespace pfc {
|
||||
return ret;
|
||||
} else if (result < 0) {
|
||||
t_node * ret = g_find_or_add_node<t_search>(p_base->m_right,p_base.get_ptr(),p_search,p_new);
|
||||
PFC_ASSERT(compare(ret->m_content, p_search) == 0);
|
||||
if (p_new) {
|
||||
recalc_depth(p_base);
|
||||
g_rebalance(p_base);
|
||||
|
||||
Reference in New Issue
Block a user