summaryrefslogtreecommitdiff
path: root/sd/source/ui/uitest/uiobject.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-10-27 14:49:43 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-10-28 07:08:47 +0000
commit89687d651eabcf64816c1b25defe38c7b68dd468 (patch)
treeaa7e6f0848424d408a992815feab4f3e6ee6495d /sd/source/ui/uitest/uiobject.cxx
parent24360897c05da1ff7c4854ba192eb98466f4499b (diff)
loplugin:expandablemethods in sd
Change-Id: I87a537928bdf42285448bba7cb50c497f2637c3c Reviewed-on: https://gerrit.libreoffice.org/30330 Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk> Tested-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/uitest/uiobject.cxx')
-rw-r--r--sd/source/ui/uitest/uiobject.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/sd/source/ui/uitest/uiobject.cxx b/sd/source/ui/uitest/uiobject.cxx
index b665abc82fd6..f47e1311b3d7 100644
--- a/sd/source/ui/uitest/uiobject.cxx
+++ b/sd/source/ui/uitest/uiobject.cxx
@@ -124,7 +124,7 @@ void ImpressWindowUIObject::execute(const OUString& rAction,
auto itr = rParameters.find("OBJECT");
OUString aName = itr->second;
SdrObject* pObj = getObject(mxWindow, aName);
- SdrPageView* pPageView = getPageView();
+ SdrPageView* pPageView = getViewShell(mxWindow)->GetView()->GetSdrPageView();
getViewShell(mxWindow)->GetView()->MarkObj(pObj, pPageView);
}
}
@@ -171,9 +171,4 @@ std::unique_ptr<UIObject> ImpressWindowUIObject::create(vcl::Window* pWindow)
return std::unique_ptr<UIObject>(new ImpressWindowUIObject(pWin));
}
-SdrPageView* ImpressWindowUIObject::getPageView()
-{
- return getViewShell(mxWindow)->GetView()->GetSdrPageView();
-}
-
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */