diff options
| author | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:43 +0200 |
|---|---|---|
| committer | Paul Buetow <paul@buetow.org> | 2013-04-06 13:14:43 +0200 |
| commit | 796609174e5ecb35fab992969e7690186840048a (patch) | |
| tree | 1e4370d47f2a5c050b768c228e73e028a6611cb8 /src/chat/base.tmpl | |
| parent | 312fe18cb5f97143f3600b207e979bc559256b6f (diff) | |
tagging ychat-0.7.3ychat-0.7.3
Diffstat (limited to 'src/chat/base.tmpl')
| -rwxr-xr-x | src/chat/base.tmpl | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/src/chat/base.tmpl b/src/chat/base.tmpl index 0be21aa..53b609f 100755 --- a/src/chat/base.tmpl +++ b/src/chat/base.tmpl @@ -4,28 +4,30 @@ #include "base.h" template<class type> -base<type>::base() -{} +base<type>::base() : smap<type*,string>::smap(HMAPOCC) +{ +} template<class type> base<type>::~base( ) -{} +{ +} template<class type> type* base<type>::get_elem( string s_name, bool &b_found ) { - s_name = to_lower(s_name); - type* p_type = nhashmap<type*>::get_elem( s_name ); - b_found = p_type == NULL ? false : true; - return p_type; + s_name = to_lower(s_name); + type* p_type = smap<type*,string>::get_elem( s_name ); + b_found = p_type == NULL ? false : true; + return p_type; } template<class type> void base<type>::add_elem( type* p_type ) { - nhashmap<type*>::add_elem(p_type, p_type->get_lowercase_name()); + smap<type*,string>::add_elem(p_type, p_type->get_lowercase_name()); } #endif |
