From 78c0815c4118fe24ab78cce2dc48a6232dcd824a Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 2 Jun 2012 20:55:18 +0000 Subject: - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@270 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/mTextControl/src/FormattedTextDraw.cpp | 8 ++++---- plugins/mTextControl/src/dataobject.cpp | 4 ++-- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'plugins/mTextControl/src') diff --git a/plugins/mTextControl/src/FormattedTextDraw.cpp b/plugins/mTextControl/src/FormattedTextDraw.cpp index 0762e779e9..be42fade65 100644 --- a/plugins/mTextControl/src/FormattedTextDraw.cpp +++ b/plugins/mTextControl/src/FormattedTextDraw.cpp @@ -35,7 +35,7 @@ DWORD CALLBACK EditStreamInCallback(DWORD_PTR dwCookie, LPBYTE pbBuff, LONG cb, PCOOKIE pCookie = (PCOOKIE) dwCookie; if (pCookie->isUnicode) { - if((pCookie->dwSize - pCookie->dwCount)*sizeof(WCHAR) < (DWORD)cb) + if ((pCookie->dwSize - pCookie->dwCount)*sizeof(WCHAR) < (DWORD)cb) *pcb = (pCookie->dwSize - pCookie->dwCount)*sizeof(WCHAR); else *pcb = cb&~1UL; @@ -497,13 +497,13 @@ HRESULT CFormattedTextDraw::CharFormatFromHFONT(CHARFORMAT2W* pCF, HFONT hFont) if(lf.lfWeight < FW_BOLD) pCF->dwEffects &= ~CFE_BOLD; - if(!lf.lfItalic) + if (!lf.lfItalic) pCF->dwEffects &= ~CFE_ITALIC; - if(!lf.lfUnderline) + if (!lf.lfUnderline) pCF->dwEffects &= ~CFE_UNDERLINE; - if(!lf.lfStrikeOut) + if (!lf.lfStrikeOut) pCF->dwEffects &= ~CFE_STRIKEOUT; pCF->dwMask = CFM_ALL | CFM_BACKCOLOR | CFM_STYLE; diff --git a/plugins/mTextControl/src/dataobject.cpp b/plugins/mTextControl/src/dataobject.cpp index 44165fe279..99e0348bc6 100644 --- a/plugins/mTextControl/src/dataobject.cpp +++ b/plugins/mTextControl/src/dataobject.cpp @@ -144,7 +144,7 @@ int CDataObject::LookupFormatEtc(FORMATETC *pFormatEtc) { for (int i = 0; i < m_nNumFormats; i++) { - if((pFormatEtc->tymed & m_pFormatEtc[i].tymed) && + if ((pFormatEtc->tymed & m_pFormatEtc[i].tymed) && pFormatEtc->cfFormat == m_pFormatEtc[i].cfFormat && pFormatEtc->dwAspect == m_pFormatEtc[i].dwAspect) { @@ -165,7 +165,7 @@ HRESULT __stdcall CDataObject::GetData (FORMATETC *pFormatEtc, STGMEDIUM *pMediu // // try to match the requested FORMATETC with one of our supported formats // - if((idx = LookupFormatEtc(pFormatEtc)) == -1) + if ((idx = LookupFormatEtc(pFormatEtc)) == -1) { return DV_E_FORMATETC; } -- cgit v1.2.3