diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2016-03-16 14:58:30 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2016-03-17 23:54:43 +0100 |
commit | a4d50fa571ff24fb6d842675e550539de2a9c7da (patch) | |
tree | fe89eff0400cc01139201b9abc2914412c453258 | |
parent | daf39a7626f1ccaf2c0a32c33a4c3edc1b6069fd (diff) |
getPropertyValues, getPropertyValue, setPropertyValue: formatting/whitespace
Change-Id: I9a08b46037eee210fd9beae7670a2efb0e5e8888
-rw-r--r-- | sw/source/core/unocore/unostyle.cxx | 40 |
1 files changed, 17 insertions, 23 deletions
diff --git a/sw/source/core/unocore/unostyle.cxx b/sw/source/core/unocore/unostyle.cxx index a999463e32b1..adbd801bbc96 100644 --- a/sw/source/core/unocore/unostyle.cxx +++ b/sw/source/core/unocore/unostyle.cxx @@ -3134,59 +3134,53 @@ uno::Sequence<uno::Any> SwXPageStyle::GetPropertyValues_Impl(const uno::Sequence return aRet; } -uno::Sequence< uno::Any > SwXPageStyle::getPropertyValues( - const uno::Sequence< OUString >& rPropertyNames ) +uno::Sequence<uno::Any> SwXPageStyle::getPropertyValues(const uno::Sequence<OUString>& rPropertyNames) throw(uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; - uno::Sequence< uno::Any > aValues; + uno::Sequence<uno::Any> aValues; // workaround for bad designed API try { - aValues = GetPropertyValues_Impl( rPropertyNames ); + aValues = GetPropertyValues_Impl(rPropertyNames); } - catch (beans::UnknownPropertyException &) + catch(beans::UnknownPropertyException &) { - throw uno::RuntimeException("Unknown property exception caught", static_cast < cppu::OWeakObject * > ( this ) ); + throw uno::RuntimeException("Unknown property exception caught", static_cast<cppu::OWeakObject*>(this)); } - catch (lang::WrappedTargetException &) + catch(lang::WrappedTargetException &) { - throw uno::RuntimeException("WrappedTargetException caught", static_cast < cppu::OWeakObject * > ( this ) ); + throw uno::RuntimeException("WrappedTargetException caught", static_cast<cppu::OWeakObject*>(this)); } return aValues; } -uno::Any SwXPageStyle::getPropertyValue(const OUString& rPropertyName) throw( - beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception) +uno::Any SwXPageStyle::getPropertyValue(const OUString& rPropertyName) + throw(beans::UnknownPropertyException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; const uno::Sequence<OUString> aProperties(&rPropertyName, 1); - return GetPropertyValues_Impl(aProperties).getConstArray()[0]; + return GetPropertyValues_Impl(aProperties)[0]; } void SwXPageStyle::setPropertyValue(const OUString& rPropertyName, const uno::Any& rValue) - throw( beans::UnknownPropertyException, - beans::PropertyVetoException, - lang::IllegalArgumentException, - lang::WrappedTargetException, - uno::RuntimeException, std::exception) + throw(beans::UnknownPropertyException, beans::PropertyVetoException, lang::IllegalArgumentException, lang::WrappedTargetException, uno::RuntimeException, std::exception) { SolarMutexGuard aGuard; const uno::Sequence<OUString> aProperties(&rPropertyName, 1); const uno::Sequence<uno::Any> aValues(&rValue, 1); - SetPropertyValues_Impl( aProperties, aValues ); + SetPropertyValues_Impl(aProperties, aValues); } -SwXFrameStyle::SwXFrameStyle ( SwDoc *pDoc ) -: SwXStyle ( pDoc, SFX_STYLE_FAMILY_FRAME, false) -{ -} +SwXFrameStyle::SwXFrameStyle(SwDoc *pDoc) + : SwXStyle(pDoc, SFX_STYLE_FAMILY_FRAME, false) +{ } SwXFrameStyle::~SwXFrameStyle() -{ -} +{ } + void SwXFrameStyle::SetItem(enum RES_FRMATR eAtr, const SfxPoolItem& rItem) { // As I was told, for some entirely unobvious reason getting an |