diff options
author | Tor Lillqvist <tml@collabora.com> | 2015-11-03 15:43:22 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2015-11-03 16:02:41 +0200 |
commit | 250574fd1ade12030945718022e342e786952827 (patch) | |
tree | 835b6d55284ef4d0c7eea73e3a5e91f34d6e5980 | |
parent | 5ae015fc74330ac4c24b67370c59518084f1d201 (diff) |
Bin a few pointless variables
Change-Id: I5198163e43b17786d3646cf398ec1b8e6ab1b438
-rw-r--r-- | sd/source/core/CustomAnimationPreset.cxx | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/sd/source/core/CustomAnimationPreset.cxx b/sd/source/core/CustomAnimationPreset.cxx index f1a8005b68e6..740f8b335f53 100644 --- a/sd/source/core/CustomAnimationPreset.cxx +++ b/sd/source/core/CustomAnimationPreset.cxx @@ -90,7 +90,6 @@ void implImportLabels( const Reference< XMultiServiceFactory >& xConfigProvider, Reference< XNameAccess > xConfigAccess( getNodeAccess( xConfigProvider, rNodePath ) ); if( xConfigAccess.is() ) { - OUString aLabel( "Label" ); Reference< XNameAccess > xNameAccess; Sequence< OUString > aNames( xConfigAccess->getElementNames() ); const OUString* p = aNames.getConstArray(); @@ -101,7 +100,7 @@ void implImportLabels( const Reference< XMultiServiceFactory >& xConfigProvider, if( xNameAccess.is() ) { OUString aUIName; - xNameAccess->getByName( aLabel ) >>= aUIName; + xNameAccess->getByName( "Label" ) >>= aUIName; if( !aUIName.isEmpty() ) { rStringMap[ *p ] = aUIName; @@ -431,8 +430,6 @@ void CustomAnimationPresets::importPresets( const Reference< XMultiServiceFactor if( xTypeAccess.is() ) { Reference< XNameAccess > xCategoryAccess; - const OUString aEffectsName( "Effects" ); - const OUString aLabelName( "Label" ); Sequence< OUString > aNames( xTypeAccess->getElementNames() ); const OUString* p = aNames.getConstArray(); @@ -441,13 +438,13 @@ void CustomAnimationPresets::importPresets( const Reference< XMultiServiceFactor { xTypeAccess->getByName( *p ) >>= xCategoryAccess; - if( xCategoryAccess.is() && xCategoryAccess->hasByName( aLabelName ) && xCategoryAccess->hasByName( aEffectsName ) ) + if( xCategoryAccess.is() && xCategoryAccess->hasByName( "Label" ) && xCategoryAccess->hasByName( "Effects" ) ) { OUString aLabel; - xCategoryAccess->getByName( aLabelName ) >>= aLabel; + xCategoryAccess->getByName( "Label" ) >>= aLabel; Sequence< OUString > aEffects; - xCategoryAccess->getByName( aEffectsName ) >>= aEffects; + xCategoryAccess->getByName( "Effects" ) >>= aEffects; EffectDescriptorList aEffectsList; |