summaryrefslogtreecommitdiff
path: root/editeng/source/outliner
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-10-02 09:36:35 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-10-02 10:46:46 +0200
commit268a49f473c1830be269a7db5f561e3681134bbd (patch)
tree259debcc224b3f211125ca6615b4fc25b2dcdeb2 /editeng/source/outliner
parenta282c9700806bc17710e8b2186b306d2a90928ee (diff)
loplugin:reducevarscope in desktop..emfio
Change-Id: I25ca760ae15114ada621d928997a7117401c75d1 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103811 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'editeng/source/outliner')
-rw-r--r--editeng/source/outliner/outliner.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/editeng/source/outliner/outliner.cxx b/editeng/source/outliner/outliner.cxx
index ca97d103c012..5684c64a44a7 100644
--- a/editeng/source/outliner/outliner.cxx
+++ b/editeng/source/outliner/outliner.cxx
@@ -496,8 +496,6 @@ bool Outliner::ImpConvertEdtToOut( sal_Int32 nPara )
ESelection aDelSel;
OUString aName;
- OUString aHeading_US( "heading" );
- OUString aNumber_US( "Numbering" );
OUString aStr( pEditEngine->GetText( nPara ) );
const sal_Unicode* pPtr = aStr.getStr();
@@ -507,6 +505,8 @@ bool Outliner::ImpConvertEdtToOut( sal_Int32 nPara )
SfxStyleSheet* pStyle= pEditEngine->GetStyleSheet( nPara );
if( pStyle )
{
+ OUString aHeading_US( "heading" );
+ OUString aNumber_US( "Numbering" );
aName = pStyle->GetName();
sal_Int32 nSearch;
if ( ( nSearch = aName.indexOf( aHeading_US ) ) != -1 )