webengine/osswebengine/WebCore/html/HTMLElementFactory.cpp
changeset 5 10e98eab6f85
parent 0 dd21522fd290
child 10 a359256acfc6
equal deleted inserted replaced
1:7c90e6132015 5:10e98eab6f85
   394 static void addTag(const QualifiedName& tag, ConstructorFunc func)
   394 static void addTag(const QualifiedName& tag, ConstructorFunc func)
   395 {
   395 {
   396     gFunctionMap->set(tag.localName().impl(), func);
   396     gFunctionMap->set(tag.localName().impl(), func);
   397 }
   397 }
   398 
   398 
       
   399 struct cleanupFuncMap {
       
   400     ~cleanupFuncMap() {
       
   401         if( gFunctionMap ) {
       
   402             gFunctionMap->clear();
       
   403             delete gFunctionMap;
       
   404             gFunctionMap=0;
       
   405         }
       
   406     }
       
   407 };
       
   408 static cleanupFuncMap cleanup;
   399 static void createFunctionMap()
   409 static void createFunctionMap()
   400 {
   410 {
   401     // Create the table.
   411     // Create the table.
   402     gFunctionMap = new FunctionMap;
   412     gFunctionMap = new FunctionMap;
   403     
   413