webengine/osswebengine/WebCore/dom/StyledElement.cpp
changeset 10 a359256acfc6
parent 5 10e98eab6f85
child 48 79859ed3eea9
--- a/webengine/osswebengine/WebCore/dom/StyledElement.cpp	Fri Jul 03 15:54:40 2009 +0100
+++ b/webengine/osswebengine/WebCore/dom/StyledElement.cpp	Thu Aug 27 07:44:59 2009 +0300
@@ -71,22 +71,20 @@
 
 static MappedAttributeDecls* mappedAttributeDecls = 0;
 
-struct mappedAttributeCleaner {
-    ~mappedAttributeCleaner() {
-        if( mappedAttributeDecls ) {
-        	MappedAttributeDeclsIterator end = mappedAttributeDecls->end();
-	        for (MappedAttributeDeclsIterator it = mappedAttributeDecls->begin(); it != end; ++it) 
-	        	{
-	        	MappedAttributeKey* obj = (*it).first;
-	        	delete obj;
-	        	}
-	        mappedAttributeDecls->clear();
-            delete mappedAttributeDecls;
-            mappedAttributeDecls = 0;
-        }
+void mappedAttributeCleaner() 
+{
+    if( mappedAttributeDecls ) {
+        MappedAttributeDeclsIterator end = mappedAttributeDecls->end();
+	    for (MappedAttributeDeclsIterator it = mappedAttributeDecls->begin(); it != end; ++it) 
+	        {
+	        MappedAttributeKey* obj = (*it).first;
+	        delete obj;
+	        }
+	    mappedAttributeDecls->clear();
+        delete mappedAttributeDecls;
+        mappedAttributeDecls = 0;
     }
-};
-struct mappedAttributeCleaner mappedAttribute;
+}
 
 CSSMappedAttributeDeclaration* StyledElement::getMappedAttributeDecl(MappedAttributeEntry entryType, Attribute* attr)
 {