summaryrefslogtreecommitdiff
path: root/sfx2/source/appl/appserv.cxx
diff options
context:
space:
mode:
authorFrank Schoenheit [fs] <frank.schoenheit@sun.com>2009-12-15 23:07:57 +0100
committerFrank Schoenheit [fs] <frank.schoenheit@sun.com>2009-12-15 23:07:57 +0100
commitef15b85ee3a40f37a5d2c298a0d5660577ae78df (patch)
tree6982377159d092ebd93d17f70c966b407dc4c2d2 /sfx2/source/appl/appserv.cxx
parent1fe9ecbd1e32170c5f54e0cd2bdc85fbd0f212e7 (diff)
autorecovery: SfxViewFrame's SfxFrame is a reference now, no pointer (it can never be NULL)
Diffstat (limited to 'sfx2/source/appl/appserv.cxx')
-rw-r--r--sfx2/source/appl/appserv.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sfx2/source/appl/appserv.cxx b/sfx2/source/appl/appserv.cxx
index e40d2dea29ba..625acdb085fd 100644
--- a/sfx2/source/appl/appserv.cxx
+++ b/sfx2/source/appl/appserv.cxx
@@ -999,7 +999,7 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
}
if ( pView )
- pView->GetFrame()->Appear();
+ pView->GetFrame().Appear();
const SfxItemSet* pArgs = rReq.GetArgs();
if ( pArgs && pView )
@@ -1073,9 +1073,8 @@ void SfxApplication::OfaExec_Impl( SfxRequest& rReq )
if ( !xFrame.is() )
{
const SfxViewFrame* pViewFrame = SfxViewFrame::Current();
- const SfxFrame* pFrame = pViewFrame ? pViewFrame->GetFrame() : NULL;
- if ( pFrame )
- xFrame = pFrame->GetFrameInterface();
+ if ( pViewFrame )
+ xFrame = pViewFrame->GetFrame().GetFrameInterface();
}
do // artificial loop for flow control