aboutsummaryrefslogtreecommitdiff
path: root/externals/grill/flext/source/flmeth.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/flmeth.cpp
parentb64e9490db6b6c93009260c0f2651f96f2099ebc (diff)
""
svn path=/trunk/; revision=1380
Diffstat (limited to 'externals/grill/flext/source/flmeth.cpp')
-rwxr-xr-xexternals/grill/flext/source/flmeth.cpp10
1 files changed, 5 insertions, 5 deletions
diff --git a/externals/grill/flext/source/flmeth.cpp b/externals/grill/flext/source/flmeth.cpp
index 6f8e5844..776461dd 100755
--- a/externals/grill/flext/source/flmeth.cpp
+++ b/externals/grill/flext/source/flmeth.cpp
@@ -93,7 +93,7 @@ void flext_base::AddMethod(ItemCont *ma,int inlet,const char *tag,methfun fun,me
void flext_base::ListMethods(AtomList &la,int inlet) const
{
- typedef std::map<int,const t_symbol *> MethList;
+ typedef DataMap<int,const t_symbol *> MethList;
MethList list[2];
int i;
@@ -102,12 +102,12 @@ void flext_base::ListMethods(AtomList &la,int inlet) const
if(a && a->Contained(inlet)) {
ItemSet &ai = a->GetInlet(inlet);
for(ItemSet::iterator as = ai.begin(); as != ai.end(); ++as) {
- for(ItemList::iterator al = as->second.begin(); al != as->second.end(); ++al) {
- MethItem *aa = (MethItem *)*al;
+ for(Item *al = as.data(); al; al = al->nxt) {
+ MethItem *aa = (MethItem *)al;
// check it's not related to an attribute
if(!aa->IsAttr()) {
- list[i][aa->index] = as->first;
+ list[i][aa->index] = as.key();
break;
}
}
@@ -120,7 +120,7 @@ void flext_base::ListMethods(AtomList &la,int inlet) const
MethList::iterator it;
for(i = 0; i <= 1; ++i)
for(it = list[i].begin(); it != list[i].end(); ++it)
- SetSymbol(la[ix++],it->second);
+ SetSymbol(la[ix++],it.data());
}
bool flext_base::ListMethods(int inlet) const