summaryrefslogtreecommitdiff
path: root/src/chat/base.tmpl
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2013-04-06 13:14:43 +0200
committerPaul Buetow <paul@buetow.org>2013-04-06 13:14:43 +0200
commitd3982ec72b255876db00825605d1d5aae0bc313e (patch)
treea653552b7d229f7f27262980da7550d39961a102 /src/chat/base.tmpl
parent796609174e5ecb35fab992969e7690186840048a (diff)
tagging ychat-0.7.7.1ychat-0.7.7.1
Diffstat (limited to 'src/chat/base.tmpl')
-rwxr-xr-xsrc/chat/base.tmpl18
1 files changed, 8 insertions, 10 deletions
diff --git a/src/chat/base.tmpl b/src/chat/base.tmpl
index 53b609f..0be21aa 100755
--- a/src/chat/base.tmpl
+++ b/src/chat/base.tmpl
@@ -4,30 +4,28 @@
#include "base.h"
template<class type>
-base<type>::base() : smap<type*,string>::smap(HMAPOCC)
-{
-}
+base<type>::base()
+{}
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 = smap<type*,string>::get_elem( s_name );
- b_found = p_type == NULL ? false : true;
- return p_type;
+ 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;
}
template<class type>
void
base<type>::add_elem( type* p_type )
{
- smap<type*,string>::add_elem(p_type, p_type->get_lowercase_name());
+ nhashmap<type*>::add_elem(p_type, p_type->get_lowercase_name());
}
#endif