aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/fllib.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'externals/grill/flext/source/fllib.cpp')
-rwxr-xr-xexternals/grill/flext/source/fllib.cpp13
1 files changed, 4 insertions, 9 deletions
diff --git a/externals/grill/flext/source/fllib.cpp b/externals/grill/flext/source/fllib.cpp
index b7f32592..85589679 100755
--- a/externals/grill/flext/source/fllib.cpp
+++ b/externals/grill/flext/source/fllib.cpp
@@ -126,21 +126,16 @@ libclass::libclass(t_class *&cl,flext_obj *(*newf)(int,t_atom *),void (*freef)(f
{}
-typedef DataMap<const t_symbol *,libclass *> LibMap;
+typedef TableMap<const t_symbol *,libclass,8> LibMap;
static LibMap libnames;
//! Store or retrieve registered classes
static libclass *FindName(const t_symbol *s,libclass *o = NULL)
{
-// typedef std::map<const t_symbol *,libclass *> LibMap;
- LibMap::iterator it = libnames.find(s);
- if(it == libnames.end()) {
- if(o) libnames[s] = o;
- return o;
- }
- else
- return it.data();
+ libclass *cl = libnames.find(s);
+ if(!cl) libnames.insert(s,cl = o);
+ return cl;
}