From cab9975c6fda854b3da7d0530cf8fa22693f6b52 Mon Sep 17 00:00:00 2001 From: Thomas Grill Date: Sat, 6 Mar 2004 03:25:48 +0000 Subject: "" svn path=/trunk/; revision=1380 --- externals/grill/flext/source/flmeth.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'externals/grill/flext/source/flmeth.cpp') 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 MethList; + typedef DataMap 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 -- cgit v1.2.1