summaryrefslogtreecommitdiff
path: root/sd/source/ui/framework/factories/BasicViewFactory.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2019-07-19 20:10:21 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2019-07-20 07:57:28 +0200
commit775c8a76d61f5692c54f524725b369cfd2a91539 (patch)
treee1c59ea49db80b1866b983221dabc71f1277c1db /sd/source/ui/framework/factories/BasicViewFactory.cxx
parent8239e13dac39741003dfbce7099c3197080aafa8 (diff)
loplugin:referencecasting in sd
Change-Id: Ief0d02006afd6cb9cd6da1da9208e374df644a42 Reviewed-on: https://gerrit.libreoffice.org/75977 Tested-by: Jenkins Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'sd/source/ui/framework/factories/BasicViewFactory.cxx')
-rw-r--r--sd/source/ui/framework/factories/BasicViewFactory.cxx5
1 files changed, 2 insertions, 3 deletions
diff --git a/sd/source/ui/framework/factories/BasicViewFactory.cxx b/sd/source/ui/framework/factories/BasicViewFactory.cxx
index fa3628550e99..6cd3de93bfa7 100644
--- a/sd/source/ui/framework/factories/BasicViewFactory.cxx
+++ b/sd/source/ui/framework/factories/BasicViewFactory.cxx
@@ -401,9 +401,8 @@ void BasicViewFactory::ReleaseView (
Reference<XRelocatableResource> xResource (rpDescriptor->mxView, UNO_QUERY);
if (xResource.is())
{
- Reference<XResource> xNewAnchor (mxLocalPane, UNO_QUERY);
- if (xNewAnchor.is())
- if (xResource->relocateToAnchor(xNewAnchor))
+ if (mxLocalPane.is())
+ if (xResource->relocateToAnchor(mxLocalPane))
mpViewCache->push_back(rpDescriptor);
else
bIsCacheable = false;