diff options
author | Noel <noelgrandin@gmail.com> | 2020-09-30 09:38:25 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2020-09-30 12:32:18 +0200 |
commit | 9373320fc88c1582a2ad25bda9c5264c7c58a97e (patch) | |
tree | ee2df8944d7af2080498b991ed46429e0a020947 /sw/source/core/attr | |
parent | 37b81dd54a915223780a6b5efa54ce45db332604 (diff) |
loplugin:reducevarscope in sw
Change-Id: Ifed7220c6acf7049b2985f1911a806b37a54d794
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103646
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sw/source/core/attr')
-rw-r--r-- | sw/source/core/attr/swatrset.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sw/source/core/attr/swatrset.cxx b/sw/source/core/attr/swatrset.cxx index 35f711297789..e2c96e069879 100644 --- a/sw/source/core/attr/swatrset.cxx +++ b/sw/source/core/attr/swatrset.cxx @@ -368,11 +368,10 @@ void SwAttrSet::CopyToModify( SwModify& rMod ) const std::unique_ptr< SfxItemSet > tmpSet; - const SwPageDesc* pPgDesc; if( pSrcDoc != pDstDoc && SfxItemState::SET == GetItemState( RES_PAGEDESC, false, &pItem )) { - pPgDesc = static_cast<const SwFormatPageDesc*>(pItem)->GetPageDesc(); + const SwPageDesc* pPgDesc = static_cast<const SwFormatPageDesc*>(pItem)->GetPageDesc(); if( pPgDesc ) { tmpSet.reset(new SfxItemSet(*this)); |