From e9c3583c2cc27fc88ee81047c236ec99dd51e8de Mon Sep 17 00:00:00 2001 From: Noel Grandin Date: Fri, 3 Jul 2015 11:31:14 +0200 Subject: improve the returnbyref loplugin Change-Id: I1b510a6194282dfa4a9001d473127c5ebc8b44eb Reviewed-on: https://gerrit.libreoffice.org/16731 Tested-by: Jenkins Reviewed-by: Noel Grandin --- sw/source/ui/config/optcomp.cxx | 2 +- sw/source/ui/config/optpage.cxx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'sw/source/ui/config') diff --git a/sw/source/ui/config/optcomp.cxx b/sw/source/ui/config/optcomp.cxx index d479d583b2fa..4a8998a10821 100644 --- a/sw/source/ui/config/optcomp.cxx +++ b/sw/source/ui/config/optcomp.cxx @@ -379,7 +379,7 @@ sal_uLong SwCompatibilityOptPage::GetDocumentOptions() const sal_uLong nRet = 0; if ( m_pWrtShell ) { - const IDocumentSettingAccess& rIDocumentSettingAccess = *m_pWrtShell->getIDocumentSettingAccess(); + const IDocumentSettingAccess& rIDocumentSettingAccess = m_pWrtShell->getIDocumentSettingAccess(); nRet = convertBools2Ulong_Impl( !rIDocumentSettingAccess.get(DocumentSettingId::USE_VIRTUAL_DEVICE), rIDocumentSettingAccess.get(DocumentSettingId::PARA_SPACE_MAX), diff --git a/sw/source/ui/config/optpage.cxx b/sw/source/ui/config/optpage.cxx index fc06390b5845..2ae97be648ed 100644 --- a/sw/source/ui/config/optpage.cxx +++ b/sw/source/ui/config/optpage.cxx @@ -742,7 +742,7 @@ bool SwStdFontTabPage::FillItemSet( SfxItemSet* ) if(pWrtShell) { pWrtShell->StartAllAction(); - SfxPrinter* pPrinter = pWrtShell->getIDocumentDeviceAccess()->getPrinter( false ); + SfxPrinter* pPrinter = pWrtShell->getIDocumentDeviceAccess().getPrinter( false ); bool bMod = false; const sal_uInt16 nFontWhich = sal::static_int_cast< sal_uInt16, RES_CHRATR >( nFontGroup == FONT_GROUP_DEFAULT ? RES_CHRATR_FONT : -- cgit