summaryrefslogtreecommitdiff
path: root/sfx2
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@collabora.co.uk>2015-09-16 10:32:34 +0200
committerMiklos Vajna <vmiklos@collabora.co.uk>2015-09-21 07:30:20 +0200
commit8cb6094447041b7fbe29bd5584b5daf9babb5cad (patch)
tree7f362cee4c3b0f0c2b96a6565fad3b4c424870c8 /sfx2
parent46588c42a546d4517b773853856b9c8f8c2e5ece (diff)
Use SfxViewFrame::Current()
Allows getting rid of vcl::ITiledRenderable::getCurrentViewShell(), which would do the same, just not implemented outside Writer. Change-Id: Id26ceca560fb9002dc2d5c740c411b9c4a149523
Diffstat (limited to 'sfx2')
-rw-r--r--sfx2/source/view/lokhelper.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/view/lokhelper.cxx b/sfx2/source/view/lokhelper.cxx
index 0aea6db9c24e..f53d2b35b1bd 100644
--- a/sfx2/source/view/lokhelper.cxx
+++ b/sfx2/source/view/lokhelper.cxx
@@ -15,9 +15,9 @@
#include <shellimpl.hxx>
-int SfxLokHelper::createView(SfxViewShell* pViewShell)
+int SfxLokHelper::createView()
{
- SfxViewFrame* pViewFrame = pViewShell->GetViewFrame();
+ SfxViewFrame* pViewFrame = SfxViewFrame::Current();
SfxRequest aRequest(pViewFrame, SID_NEWWINDOW);
pViewFrame->ExecView_Impl(aRequest);