From 2925efd2fcef1f8b9fd48979144877c1a5ec214b Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 17 Sep 2013 11:01:33 +0200 Subject: Remove C++11 requirement in WebKit2 Removes all use of C++11 specific features in WebKit2. This consists of template> syntax, a few uses of auto, and a single use of std::move. Change-Id: I1bbd356c430802caf5f7440cd0d3bb2ba49ed098 Reviewed-by: Allan Sandfeld Jensen --- Source/WebKit2/PluginProcess/WebProcessConnection.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'Source/WebKit2/PluginProcess/WebProcessConnection.cpp') diff --git a/Source/WebKit2/PluginProcess/WebProcessConnection.cpp b/Source/WebKit2/PluginProcess/WebProcessConnection.cpp index 60a5722f6..94cdcf5e0 100644 --- a/Source/WebKit2/PluginProcess/WebProcessConnection.cpp +++ b/Source/WebKit2/PluginProcess/WebProcessConnection.cpp @@ -171,7 +171,10 @@ void WebProcessConnection::didClose(CoreIPC::Connection*) // The web process crashed. Destroy all the plug-in controllers. Destroying the last plug-in controller // will cause the web process connection itself to be destroyed. Vector pluginControllers; - for (auto it = m_pluginControllers.values().begin(), end = m_pluginControllers.values().end(); it != end; ++it) + HashMap >::iterator::Values it = m_pluginControllers.values().begin(); + HashMap >::iterator::Values end = m_pluginControllers.values().end(); + + for (; it != end; ++it) pluginControllers.append(it->get()); for (size_t i = 0; i < pluginControllers.size(); ++i) -- cgit v1.2.1