Commit e0c78159 authored by andersca@apple.com's avatar andersca@apple.com

Fix build.

* Plugins/Hosted/ProxyInstance.h:
* Plugins/Hosted/ProxyInstance.mm:
(WebKit::ProxyInstance::methodNamed):
(WebKit::ProxyInstance::fieldNamed):

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@154709 268f45cc-cd09-0410-ab3c-d52691b4dbfc
parent bfcc8784
2013-08-27 Anders Carlsson <andersca@apple.com>
Fix build.
* Plugins/Hosted/ProxyInstance.h:
* Plugins/Hosted/ProxyInstance.mm:
(WebKit::ProxyInstance::methodNamed):
(WebKit::ProxyInstance::fieldNamed):
2013-08-23 Andy Estes <aestes@apple.com>
Fix issues found by the Clang Static Analyzer
......
......@@ -99,8 +99,8 @@ private:
NetscapePluginInstanceProxy* m_instanceProxy;
uint32_t m_objectID;
JSC::Bindings::FieldMap m_fields;
JSC::Bindings::MethodMap m_methods;
HashMap<RefPtr<StringImpl>, JSC::Bindings::Field*> m_fields;
HashMap<RefPtr<StringImpl>, JSC::Bindings::Method*> m_methods;
};
}
......
......@@ -352,7 +352,7 @@ Method* ProxyInstance::methodNamed(PropertyName propertyName)
return 0;
// If we already have an entry in the map, use it.
MethodMap::iterator existingMapEntry = m_methods.find(name.impl());
auto existingMapEntry = m_methods.find(name.impl());
if (existingMapEntry != m_methods.end()) {
if (existingMapEntry->value)
return existingMapEntry->value;
......@@ -374,7 +374,7 @@ Method* ProxyInstance::methodNamed(PropertyName propertyName)
return 0;
// Add a new entry to the map unless an entry was added while we were in waitForReply.
MethodMap::AddResult mapAddResult = m_methods.add(name.impl(), 0);
auto mapAddResult = m_methods.add(name.impl(), 0);
if (mapAddResult.isNewEntry && reply->m_result)
mapAddResult.iterator->value = new ProxyMethod(methodName);
......@@ -391,7 +391,7 @@ Field* ProxyInstance::fieldNamed(PropertyName propertyName)
return 0;
// If we already have an entry in the map, use it.
FieldMap::iterator existingMapEntry = m_fields.find(name.impl());
auto existingMapEntry = m_fields.find(name.impl());
if (existingMapEntry != m_fields.end())
return existingMapEntry->value;
......@@ -411,7 +411,7 @@ Field* ProxyInstance::fieldNamed(PropertyName propertyName)
return 0;
// Add a new entry to the map unless an entry was added while we were in waitForReply.
FieldMap::AddResult mapAddResult = m_fields.add(name.impl(), 0);
auto mapAddResult = m_fields.add(name.impl(), 0);
if (mapAddResult.isNewEntry && reply->m_result)
mapAddResult.iterator->value = new ProxyField(identifier);
return mapAddResult.iterator->value;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment