diff options
author | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-05-21 17:39:52 +0200 |
---|---|---|
committer | Valentin Kettner <vakevk+libreoffice@gmail.com> | 2014-06-03 19:12:01 +0200 |
commit | dbb2e6befb9d0e970048dfb2c31c7cdc281c8ed5 (patch) | |
tree | 80f001baa32add41e9cc0027edf03e58061330b9 /sw/source/uibase/uiview | |
parent | 2ec2ec98bc61e1398494dcaea1b017423c57e721 (diff) |
Made SwDoc::getDocumentDeviceAccess return a reference.
Also overloaded SwDoc::getDocumentDeviceAccess with its const
version.
Change-Id: I3272be3ee067aa2e0174663ede3c98190ecf2b09
Diffstat (limited to 'sw/source/uibase/uiview')
-rw-r--r-- | sw/source/uibase/uiview/srcview.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sw/source/uibase/uiview/srcview.cxx b/sw/source/uibase/uiview/srcview.cxx index 904767792f70..4e9fe9ae597c 100644 --- a/sw/source/uibase/uiview/srcview.cxx +++ b/sw/source/uibase/uiview/srcview.cxx @@ -664,7 +664,7 @@ sal_uInt16 SwSrcView::SetPrinter(SfxPrinter* pNew, sal_uInt16 nDiffFlags, bool ) SwDocShell* pDocSh = GetDocShell(); if ( (SFX_PRINTER_JOBSETUP | SFX_PRINTER_PRINTER) & nDiffFlags ) { - pDocSh->GetDoc()->getIDocumentDeviceAccess()->setPrinter( pNew, true, true ); + pDocSh->GetDoc()->getIDocumentDeviceAccess().setPrinter( pNew, true, true ); if ( nDiffFlags & SFX_PRINTER_PRINTER ) pDocSh->SetModified(); } @@ -682,7 +682,7 @@ sal_uInt16 SwSrcView::SetPrinter(SfxPrinter* pNew, sal_uInt16 nDiffFlags, bool ) SfxPrinter* SwSrcView::GetPrinter( bool bCreate ) { - return GetDocShell()->GetDoc()->getIDocumentDeviceAccessConst()->getPrinter( bCreate ); + return GetDocShell()->GetDoc()->getIDocumentDeviceAccess().getPrinter( bCreate ); } sal_Int32 SwSrcView::PrintSource( |