- if (!valueName.isNull()) {
- // Use a local variable here to sidestep an RVCT compiler bug.
- StaticValueEntry* entry = new StaticValueEntry(staticValue->getProperty, staticValue->setProperty, staticValue->attributes);
- StringImpl* impl = valueName.impl();
- StaticValueEntry* existingEntry = m_staticValues->get(impl);
- m_staticValues->set(impl, entry);
- delete existingEntry;
- }
+ if (!valueName.isNull())
+ m_staticValues->set(valueName.impl(), adoptPtr(new StaticValueEntry(staticValue->getProperty, staticValue->setProperty, staticValue->attributes)));