summaryrefslogtreecommitdiffstats
path: root/lotuswordpro/source/filter/lwppagelayout.cxx
diff options
context:
space:
mode:
authorMichael Weghorn <m.weghorn@posteo.de>2014-12-19 08:47:29 +0100
committerNoel Grandin <noelgrandin@gmail.com>2014-12-19 11:00:32 +0000
commitd41bc0f7b328ed6c69b2c2822de00165cdc62c61 (patch)
treef92cb1c15af79b7100e90d713eaa3ee6adcd5115 /lotuswordpro/source/filter/lwppagelayout.cxx
parenticu#11451 bidi, the gift that keeps on giving (diff)
downloadcore-d41bc0f7b328ed6c69b2c2822de00165cdc62c61.tar.gz
core-d41bc0f7b328ed6c69b2c2822de00165cdc62c61.zip
fdo#39440 reduce scope of local variables
This addresses some cppcheck warnings. Change-Id: Idcedd908c653d5a5700884f233ad134dde8be018 Reviewed-on: https://gerrit.libreoffice.org/13540 Reviewed-by: Noel Grandin <noelgrandin@gmail.com> Tested-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'lotuswordpro/source/filter/lwppagelayout.cxx')
-rw-r--r--lotuswordpro/source/filter/lwppagelayout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/lotuswordpro/source/filter/lwppagelayout.cxx b/lotuswordpro/source/filter/lwppagelayout.cxx
index ad75b8847814..1a3967c38ba1 100644
--- a/lotuswordpro/source/filter/lwppagelayout.cxx
+++ b/lotuswordpro/source/filter/lwppagelayout.cxx
@@ -719,10 +719,10 @@ LwpPara* LwpPageLayout::GetPagePosition()
if(pPara)
return pPara;
//Get the position from its related section
- LwpSection* pSection = NULL;
LwpFoundry* pFoundry = GetFoundry();
if(pFoundry)
{
+ LwpSection* pSection = NULL;
while( (pSection = pFoundry->EnumSections(pSection)) )
{
if(pSection->GetPageLayout() == this)