diff options
author | David Tardon <dtardon@redhat.com> | 2014-12-08 18:12:54 +0100 |
---|---|---|
committer | David Tardon <dtardon@redhat.com> | 2014-12-08 18:34:13 +0100 |
commit | 447b9634a11c63bc8f08d6921a24d494d264daf6 (patch) | |
tree | 135997c95d119fd9f64f0f51010840bf8f880aa8 /sd/source | |
parent | e4cf5d1a98469c17133f33fc8220e6b41f65e9a0 (diff) |
limit scope of variable
Change-Id: I74ccd6c8a3cfd45929973f21418458f3a83243af
Diffstat (limited to 'sd/source')
-rw-r--r-- | sd/source/core/stlpool.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/sd/source/core/stlpool.cxx b/sd/source/core/stlpool.cxx index 94f8f96e5b26..29d5e98cd9a1 100644 --- a/sd/source/core/stlpool.cxx +++ b/sd/source/core/stlpool.cxx @@ -640,8 +640,6 @@ struct HasFamilyPredicate : svl::StyleSheetPredicate void SdStyleSheetPool::CopySheets(SdStyleSheetPool& rSourcePool, SfxStyleFamily eFamily, SdStyleSheetVector& rCreatedSheets, OUString& rRenameSuffix) { - OUString aHelpFile; - std::vector< std::pair< rtl::Reference< SfxStyleSheetBase >, OUString > > aNewStyles; std::vector< std::pair< OUString, OUString > > aRenamedList; @@ -700,7 +698,10 @@ void SdStyleSheetPool::CopySheets(SdStyleSheetPool& rSourcePool, SfxStyleFamily aNewStyles.push_back( std::pair< rtl::Reference< SfxStyleSheetBase >, OUString >( xNewSheet, aParent ) ); if( !bAddToList ) + { + OUString aHelpFile; xNewSheet->SetHelpId( aHelpFile, xSheet->GetHelpId( aHelpFile ) ); + } xNewSheet->GetItemSet().Put( xSheet->GetItemSet() ); rCreatedSheets.push_back( SdStyleSheetRef( static_cast< SdStyleSheet* >( xNewSheet.get() ) ) ); |