summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/ComHelper.cpp
diff options
context:
space:
mode:
authorKirill Volinsky <mataes2007@gmail.com>2014-12-21 09:49:05 +0000
committerKirill Volinsky <mataes2007@gmail.com>2014-12-21 09:49:05 +0000
commit9b119cadd74e1343cad493e8b366e69743a620d0 (patch)
treee11d3923e86eb667f1a2f20e1126066e51ed73ce /plugins/Quotes/src/ComHelper.cpp
parent1b85ad91e7aa1af9d295d399e560a2adc6d413d3 (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/ComHelper.cpp')
-rw-r--r--plugins/Quotes/src/ComHelper.cpp16
1 files changed, 8 insertions, 8 deletions
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<IErrorInfo> 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);
}