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/ComHelper.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/Quotes/src/ComHelper.cpp') diff --git a/plugins/Quotes/src/ComHelper.cpp b/plugins/Quotes/src/ComHelper.cpp index 77c0fc7d60..36241a423e 100644 --- a/plugins/Quotes/src/ComHelper.cpp +++ b/plugins/Quotes/src/ComHelper.cpp @@ -1,10 +1,10 @@ #include "StdAfx.h" -tstring ComException2Msg(_com_error& e,const tstring& rsAdditionalInfo) +tstring ComException2Msg(_com_error& e, const tstring& rsAdditionalInfo) { HRESULT hError = e.Error(); tostringstream o; - if(false == rsAdditionalInfo.empty()) + if (false == rsAdditionalInfo.empty()) { o << rsAdditionalInfo << "\n"; } @@ -13,12 +13,12 @@ tstring ComException2Msg(_com_error& e,const tstring& rsAdditionalInfo) IErrorInfo* p = e.ErrorInfo(); CComPtr pErrorInfo(p); - if(NULL != p) + if (NULL != p) { p->Release(); } - if(pErrorInfo) + if (pErrorInfo) { o << _T("\n") << e.Description(); } @@ -26,11 +26,11 @@ tstring ComException2Msg(_com_error& e,const tstring& rsAdditionalInfo) return o.str(); } -void ShowComError(_com_error& e,const tstring& rsAdditionalInfo) +void ShowComError(_com_error& e, const tstring& rsAdditionalInfo) { - tstring sErrorMsg = ComException2Msg(e,rsAdditionalInfo); - LogIt(Error,sErrorMsg); - Quotes_MessageBox(NULL,sErrorMsg.c_str(),MB_OK|MB_ICONERROR); + tstring sErrorMsg = ComException2Msg(e, rsAdditionalInfo); + LogIt(sErrorMsg); + Quotes_MessageBox(NULL, sErrorMsg.c_str(), MB_OK | MB_ICONERROR); } -- cgit v1.2.3