diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-11-28 02:24:41 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2015-11-29 10:36:47 +0100 |
commit | a96181328df3b775f749316216b5f66fecaafe25 (patch) | |
tree | c293ffd6032764380c14de0e99d366e7802f34a6 | |
parent | b8f4fe062b8ac4bf1e7c19ff6088dc60a35b58c1 (diff) |
formatting
Change-Id: I6dc8d111ec4ff7cfc12fb8cdd96196043a6e6457
-rw-r--r-- | sw/source/core/unocore/unostyle.cxx | 22 |
1 files changed, 8 insertions, 14 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index 462a52e12923..6fb4d0290ff7 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -526,26 +526,20 @@ uno::Any SwXStyleFamily::getByIndex(sal_Int32 nIndex) break; case SFX_STYLE_FAMILY_FRAME: { - if ( nIndex < ( RES_POOLFRM_END - RES_POOLFRM_BEGIN ) ) - { - SwStyleNameMapper::FillUIName ( static_cast< sal_uInt16 >(RES_POOLFRM_BEGIN + nIndex), sStyleName ); - } + if(nIndex < (RES_POOLFRM_END - RES_POOLFRM_BEGIN)) + SwStyleNameMapper::FillUIName(static_cast<sal_uInt16>(RES_POOLFRM_BEGIN + nIndex), sStyleName); } break; case SFX_STYLE_FAMILY_PAGE: { - if ( nIndex < ( RES_POOLPAGE_END - RES_POOLPAGE_BEGIN ) ) - { - SwStyleNameMapper::FillUIName ( static_cast< sal_uInt16 >(RES_POOLPAGE_BEGIN + nIndex), sStyleName ); - } + if(nIndex < (RES_POOLPAGE_END - RES_POOLPAGE_BEGIN )) + SwStyleNameMapper::FillUIName(static_cast<sal_uInt16>(RES_POOLPAGE_BEGIN + nIndex), sStyleName); } break; case SFX_STYLE_FAMILY_PSEUDO: { - if ( nIndex < ( RES_POOLNUMRULE_END - RES_POOLNUMRULE_BEGIN ) ) - { + if(nIndex < (RES_POOLNUMRULE_END - RES_POOLNUMRULE_BEGIN)) SwStyleNameMapper::FillUIName ( static_cast< sal_uInt16 >(RES_POOLNUMRULE_BEGIN + nIndex), sStyleName ); - } } break; @@ -553,14 +547,14 @@ uno::Any SwXStyleFamily::getByIndex(sal_Int32 nIndex) ; } if (sStyleName.isEmpty()) - lcl_GetCountOrName ( *m_pDocShell->GetDoc(), m_eFamily, &sStyleName, nIndex ); + lcl_GetCountOrName(*m_pDocShell->GetDoc(), m_eFamily, &sStyleName, nIndex); if(sStyleName.isEmpty()) throw lang::IndexOutOfBoundsException(); - SfxStyleSheetBase* pBase = m_pBasePool->Find( sStyleName, m_eFamily ); + SfxStyleSheetBase* pBase = m_pBasePool->Find(sStyleName, m_eFamily); if(!pBase) throw uno::RuntimeException(); - uno::Reference< style::XStyle > xStyle = _FindStyle(sStyleName); + uno::Reference<style::XStyle> xStyle = _FindStyle(sStyleName); if(!xStyle.is()) { switch(m_eFamily) |