Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginClass.cpp

Issue 5712621990838272: [IE] Replace ATL::CSimpleArray (Closed)
Patch Set: Formatting changes Created July 22, 2014, 2:24 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginClass.cpp
===================================================================
--- a/src/plugin/PluginClass.cpp
+++ b/src/plugin/PluginClass.cpp
@@ -261,7 +261,7 @@
// Always register on startup, then check if we need to unregister in a separate thread
s_mimeFilter = CPluginClientFactory::GetMimeFilterClientInstance();
s_asyncWebBrowser2 = unknownSite;
- s_instances.insert( this );
+ s_instances.insert(this);
}
s_criticalSectionLocal.Unlock();
@@ -372,7 +372,7 @@
{
s_threadInstances.erase(it);
}
- if ( s_instances.empty() )
+ if (s_instances.empty())
{
CPluginClientFactory::ReleaseMimeFilterClientInstance();
}
@@ -893,11 +893,10 @@
s_criticalSectionLocal.Lock();
{
- for ( auto instance : s_instances )
+ for (auto instance : s_instances)
{
- if ( instance->m_hTabWnd == hTabWnd2)
+ if (instance->m_hTabWnd == hTabWnd2)
{
-
bExistingTab = true;
break;
}
@@ -1062,13 +1061,13 @@
CPluginClass* CPluginClass::FindInstance(HWND hStatusBarWnd)
{
- CPluginClass* return_instance = NULL;
+ CPluginClass* return_instance = nullptr;
s_criticalSectionLocal.Lock();
{
- for ( auto instance : s_instances )
+ for (auto instance : s_instances)
{
- if ( instance->m_hStatusBarWnd == hStatusBarWnd)
+ if (instance->m_hStatusBarWnd == hStatusBarWnd)
{
return_instance = instance;
break;
@@ -1949,9 +1948,9 @@
s_criticalSectionLocal.Lock();
{
- for ( auto instance : s_instances )
+ for (auto instance : s_instances)
{
- if ( instance->m_hTabWnd == hTabWnd2 )
+ if (instance->m_hTabWnd == hTabWnd2)
{
bExistingTab = true;
break;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld