summaryrefslogtreecommitdiff
path: root/plugins/Quotes/src/ComHelper.cpp
diff options
context:
space:
mode:
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);
}