Ignore:
Timestamp:
Aug 27, 2007, 6:11:21 PM (14 years ago)
Author:
Eugene Romanenko
Message:

fix for ticket #86, testing needed

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Lucide/SOURCE/gui/pluginman.cpp

    r234 r238  
    315315            p = strtok( NULL, ";" );
    316316        }
     317        delete tmpexts;
    317318    }
    318319    return cRet;
    319320}
    320321
    321 
     322void PluginManager::getExtsList( std::vector<std::string> *list )
     323{
     324    for ( int i = 0; i < plugins->size(); i++ )
     325    {
     326        PluginInfo *pi = &(*plugins)[ i ];
     327        char *tmpexts = newstrdup( pi->extensions.c_str() );
     328        char *p = strtok( tmpexts, ";" );
     329        while ( p != NULL ) {
     330            list->push_back( p );
     331            p = strtok( NULL, ";" );
     332        }
     333        delete tmpexts;
     334    }
     335}
     336
     337
Note: See TracChangeset for help on using the changeset viewer.