summaryrefslogtreecommitdiff
path: root/sw/source/core/text/porrst.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source/core/text/porrst.cxx')
-rw-r--r--sw/source/core/text/porrst.cxx10
1 files changed, 5 insertions, 5 deletions
diff --git a/sw/source/core/text/porrst.cxx b/sw/source/core/text/porrst.cxx
index 5e78961844a9..c2b029ebc37a 100644
--- a/sw/source/core/text/porrst.cxx
+++ b/sw/source/core/text/porrst.cxx
@@ -244,13 +244,13 @@ SwTwips SwTextFrm::EmptyHeight() const
if ( !pOut || !pSh->GetViewOptions()->getBrowseMode() ||
pSh->GetViewOptions()->IsPrtFormat() )
{
- pOut = rTextNode.getIDocumentDeviceAccess()->getReferenceDevice(true);
+ pOut = rTextNode.getIDocumentDeviceAccess().getReferenceDevice(true);
}
- const IDocumentRedlineAccess* pIDRA = rTextNode.getIDocumentRedlineAccess();
- if( IDocumentRedlineAccess::IsShowChanges( pIDRA->GetRedlineMode() ) )
+ const IDocumentRedlineAccess& rIDRA = rTextNode.getIDocumentRedlineAccess();
+ if( IDocumentRedlineAccess::IsShowChanges( rIDRA.GetRedlineMode() ) )
{
- const sal_uInt16 nRedlPos = pIDRA->GetRedlinePos( rTextNode, USHRT_MAX );
+ const sal_uInt16 nRedlPos = rIDRA.GetRedlinePos( rTextNode, USHRT_MAX );
if( USHRT_MAX != nRedlPos )
{
SwAttrHandler aAttrHandler;
@@ -384,7 +384,7 @@ bool SwTextFrm::FillRegister( SwTwips& rRegStart, sal_uInt16& rRegDiff )
OutputDevice *pOut = 0;
if( !pSh || !pSh->GetViewOptions()->getBrowseMode() ||
pSh->GetViewOptions()->IsPrtFormat() )
- pOut = GetTextNode()->getIDocumentDeviceAccess()->getReferenceDevice( true );
+ pOut = GetTextNode()->getIDocumentDeviceAccess().getReferenceDevice( true );
if( pSh && !pOut )
pOut = pSh->GetWin();