diff options
author | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-21 09:49:05 +0000 |
---|---|---|
committer | Kirill Volinsky <mataes2007@gmail.com> | 2014-12-21 09:49:05 +0000 |
commit | 9b119cadd74e1343cad493e8b366e69743a620d0 (patch) | |
tree | e11d3923e86eb667f1a2f20e1126066e51ed73ce /plugins/Quotes/src/ModuleInfo.cpp | |
parent | 1b85ad91e7aa1af9d295d399e560a2adc6d413d3 (diff) |
Quotes: changed warning level to w4
git-svn-id: http://svn.miranda-ng.org/main/trunk@11552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Quotes/src/ModuleInfo.cpp')
-rw-r--r-- | plugins/Quotes/src/ModuleInfo.cpp | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/plugins/Quotes/src/ModuleInfo.cpp b/plugins/Quotes/src/ModuleInfo.cpp index 27850fd8ef..980a5241bc 100644 --- a/plugins/Quotes/src/ModuleInfo.cpp +++ b/plugins/Quotes/src/ModuleInfo.cpp @@ -7,8 +7,8 @@ namespace CLightMutex g_lmParsers;
}
-CModuleInfo::CModuleInfo()
- : m_bExtendedStatusInfo(1 == db_get_b(NULL,QUOTES_MODULE_NAME,"ExtendedStatus",false))
+CModuleInfo::CModuleInfo()
+ : m_bExtendedStatusInfo(1 == db_get_b(NULL, QUOTES_MODULE_NAME, "ExtendedStatus", false))
{
}
@@ -22,29 +22,29 @@ CModuleInfo& CModuleInfo::GetInstance() return mi;
}
-HANDLE CModuleInfo::GetWindowList(const std::string& rsKey,bool bAllocateIfNonExist /*= true*/)
+HANDLE CModuleInfo::GetWindowList(const std::string& rsKey, bool bAllocateIfNonExist /*= true*/)
{
HANDLE hResult = NULL;
THandles::const_iterator i = m_ahWindowLists.find(rsKey);
- if(i != m_ahWindowLists.end())
+ if (i != m_ahWindowLists.end())
{
hResult = i->second;
}
- else if(bAllocateIfNonExist)
+ else if (bAllocateIfNonExist)
{
hResult = WindowList_Create();
- if(hResult)
- m_ahWindowLists.insert(std::make_pair(rsKey,hResult));
+ if (hResult)
+ m_ahWindowLists.insert(std::make_pair(rsKey, hResult));
}
return hResult;
-}
+}
void CModuleInfo::OnMirandaShutdown()
{
- BOOST_FOREACH(THandles::value_type p,m_ahWindowLists)
+ BOOST_FOREACH(THandles::value_type p, m_ahWindowLists)
{
- WindowList_Broadcast(p.second,WM_CLOSE,0,0);
+ WindowList_Broadcast(p.second, WM_CLOSE, 0, 0);
}
}
@@ -95,17 +95,17 @@ void CModuleInfo::SetHTMLEngine(THTMLEnginePtr pEngine) bool CModuleInfo::Verify()
{
- INITCOMMONCONTROLSEX icc = {0};
+ INITCOMMONCONTROLSEX icc = { 0 };
icc.dwSize = sizeof(icc);
- icc.dwICC = ICC_WIN95_CLASSES|ICC_LINK_CLASS;
- if(FALSE == ::InitCommonControlsEx(&icc))
+ icc.dwICC = ICC_WIN95_CLASSES | ICC_LINK_CLASS;
+ if (FALSE == ::InitCommonControlsEx(&icc))
{
return false;
}
if (!GetXMLEnginePtr())
{
- Quotes_MessageBox(NULL,TranslateT("Miranda could not load Quotes plugin. XML parser is missing."),MB_OK|MB_ICONERROR);
+ Quotes_MessageBox(NULL, TranslateT("Miranda could not load Quotes plugin. XML parser is missing."), MB_OK | MB_ICONERROR);
return false;
}
@@ -113,7 +113,7 @@ bool CModuleInfo::Verify() {
Quotes_MessageBox(NULL,
TranslateT("Miranda could not load Quotes plugin. Microsoft HTML parser is missing."),
- MB_YESNO|MB_ICONQUESTION);
+ MB_YESNO | MB_ICONQUESTION);
return false;
}
|