diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-06 09:23:33 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-09 08:34:40 +0000 |
commit | 6c80a8fe89fadf9a2c7260a09c037a09462f53d1 (patch) | |
tree | d36da9ee2a5fdc579d2a57ff6ba02deaddfa785a /sd/source/ui/animations/CustomAnimationPane.cxx | |
parent | cid#1326599, cid#1326598: added throw (status generation) (diff) | |
download | core-6c80a8fe89fadf9a2c7260a09c037a09462f53d1.tar.gz core-6c80a8fe89fadf9a2c7260a09c037a09462f53d1.zip |
new loplugin: oncevar
Change-Id: If57390510dde4d166be3141b9f658a7453755d3f
Reviewed-on: https://gerrit.libreoffice.org/19815
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sd/source/ui/animations/CustomAnimationPane.cxx')
-rw-r--r-- | sd/source/ui/animations/CustomAnimationPane.cxx | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/sd/source/ui/animations/CustomAnimationPane.cxx b/sd/source/ui/animations/CustomAnimationPane.cxx index c6c144577a82..bac92fa6c6f4 100644 --- a/sd/source/ui/animations/CustomAnimationPane.cxx +++ b/sd/source/ui/animations/CustomAnimationPane.cxx @@ -867,7 +867,6 @@ static sal_Int32 calcMaxParaDepth( Reference< XShape > xTargetShape ) if( xText.is() ) { Reference< XPropertySet > xParaSet; - const OUString strNumberingLevel( "NumberingLevel" ); Reference< XEnumeration > xEnumeration( xText->createEnumeration(), UNO_QUERY_THROW ); while( xEnumeration->hasMoreElements() ) @@ -876,7 +875,7 @@ static sal_Int32 calcMaxParaDepth( Reference< XShape > xTargetShape ) if( xParaSet.is() ) { sal_Int32 nParaDepth = 0; - xParaSet->getPropertyValue( strNumberingLevel ) >>= nParaDepth; + xParaSet->getPropertyValue( "NumberingLevel" ) >>= nParaDepth; if( nParaDepth > nMaxParaDepth ) nMaxParaDepth = nParaDepth; @@ -1027,15 +1026,13 @@ static bool hasVisibleShape( const Reference< XShape >& xShape ) if( sShapeType == "com.sun.star.presentation.TitleTextShape" || sShapeType == "com.sun.star.presentation.OutlinerShape" || sShapeType == "com.sun.star.presentation.SubtitleShape" || sShapeType == "com.sun.star.drawing.TextShape" ) { - const OUString sFillStyle( "FillStyle" ); - const OUString sLineStyle( "LineStyle" ); Reference< XPropertySet > xSet( xShape, UNO_QUERY_THROW ); FillStyle eFillStyle; - xSet->getPropertyValue( sFillStyle ) >>= eFillStyle; + xSet->getPropertyValue( "FillStyle" ) >>= eFillStyle; css::drawing::LineStyle eLineStyle; - xSet->getPropertyValue( sLineStyle ) >>= eLineStyle; + xSet->getPropertyValue( "LineStyle" ) >>= eLineStyle; return eFillStyle != FillStyle_NONE || eLineStyle != css::drawing::LineStyle_NONE; } |