summaryrefslogtreecommitdiff
path: root/sfx2/source/view/sfxbasecontroller.cxx
diff options
context:
space:
mode:
authorNoel <noelgrandin@gmail.com>2020-09-30 12:08:47 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2020-09-30 14:56:06 +0200
commit46da549a68003ef5a35aedf4621482cb2b54e930 (patch)
treeb60d2081c076545482ff6bb33bcb6c0d1d2d24c2 /sfx2/source/view/sfxbasecontroller.cxx
parent71303c5c23bdb385e9f12c0dbe5d2a0818b836ec (diff)
loplugin:reducevarscope in sfx2
Change-Id: I63ee19bfe7ad01ff4ad8c941bffadd9406101c6a Reviewed-on: https://gerrit.libreoffice.org/c/core/+/103678 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sfx2/source/view/sfxbasecontroller.cxx')
-rw-r--r--sfx2/source/view/sfxbasecontroller.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sfx2/source/view/sfxbasecontroller.cxx b/sfx2/source/view/sfxbasecontroller.cxx
index 8f4ba77305db..95f2a1cfd683 100644
--- a/sfx2/source/view/sfxbasecontroller.cxx
+++ b/sfx2/source/view/sfxbasecontroller.cxx
@@ -621,10 +621,10 @@ sal_Bool SAL_CALL SfxBaseController::suspend( sal_Bool bSuspend )
uno::Any SfxBaseController::getViewData()
{
uno::Any aAny;
- OUString sData;
SolarMutexGuard aGuard;
if ( m_pData->m_pViewShell )
{
+ OUString sData;
m_pData->m_pViewShell->WriteUserData( sData ) ;
aAny <<= sData ;
}