aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/fllib.cpp
diff options
context:
space:
mode:
authorThomas Grill <xovo@users.sourceforge.net>2004-03-06 03:25:48 +0000
committerThomas Grill <xovo@users.sourceforge.net>2004-03-06 03:25:48 +0000
commitcab9975c6fda854b3da7d0530cf8fa22693f6b52 (patch)
treea8b46172eb4bab18dd7d6b0aac79727aaf92d541 /externals/grill/flext/source/fllib.cpp
parentb64e9490db6b6c93009260c0f2651f96f2099ebc (diff)
""
svn path=/trunk/; revision=1380
Diffstat (limited to 'externals/grill/flext/source/fllib.cpp')
-rwxr-xr-xexternals/grill/flext/source/fllib.cpp14
1 files changed, 8 insertions, 6 deletions
diff --git a/externals/grill/flext/source/fllib.cpp b/externals/grill/flext/source/fllib.cpp
index c727bcb5..ed07a35d 100755
--- a/externals/grill/flext/source/fllib.cpp
+++ b/externals/grill/flext/source/fllib.cpp
@@ -124,21 +124,23 @@ libclass::libclass(t_class *&cl,flext_obj *(*newf)(int,t_atom *),void (*freef)(f
clss(cl),
argc(0),argv(NULL)
{}
-
+
+
+typedef DataMap<const t_symbol *,libclass *> 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;
-
- static LibMap libnames;
-
+// 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->second;
+ return it.data();
}