summaryrefslogtreecommitdiff
path: root/sw/source/core/access
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-09-30 09:38:25 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-09-30 12:32:18 +0200
commit9373320fc88c1582a2ad25bda9c5264c7c58a97e (patch)
treeee2df8944d7af2080498b991ed46429e0a020947 /sw/source/core/access
parent37b81dd54a915223780a6b5efa54ce45db332604 (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/access')
-rw-r--r--sw/source/core/access/accdoc.cxx8
1 files changed, 3 insertions, 5 deletions
diff --git a/sw/source/core/access/accdoc.cxx b/sw/source/core/access/accdoc.cxx
index 53a974acc96a..cf59efdb21ce 100644
--- a/sw/source/core/access/accdoc.cxx
+++ b/sw/source/core/access/accdoc.cxx
@@ -524,15 +524,13 @@ uno::Any SAL_CALL SwAccessibleDocument::getExtendedAttributes()
SwFEShell* pFEShell = dynamic_cast<const SwFEShell*>( pCursorShell) != nullptr
? static_cast<SwFEShell*>( pCursorShell )
: nullptr;
- OUString sValue;
- sal_uInt16 nPage, nLogPage;
- OUString sDisplay;
-
if( pFEShell )
{
+ OUString sDisplay;
+ sal_uInt16 nPage, nLogPage;
pFEShell->GetPageNumber(-1,true,nPage,nLogPage,sDisplay);
- sValue = "page-name:" + sDisplay +
+ OUString sValue = "page-name:" + sDisplay +
";page-number:" +
OUString::number( nPage ) +
";total-pages:" +