From 9b119cadd74e1343cad493e8b366e69743a620d0 Mon Sep 17 00:00:00 2001 From: Kirill Volinsky Date: Sun, 21 Dec 2014 09:49:05 +0000 Subject: Quotes: changed warning level to w4 git-svn-id: http://svn.miranda-ng.org/main/trunk@11552 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Quotes/src/ModuleInfo.cpp | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) (limited to 'plugins/Quotes/src/ModuleInfo.cpp') 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; } -- cgit v1.2.3