summaryrefslogtreecommitdiff
path: root/framework/source/fwi
diff options
context:
space:
mode:
authorNoel Grandin <noel.grandin@collabora.co.uk>2016-11-08 10:11:23 +0200
committerNoel Grandin <noel.grandin@collabora.co.uk>2016-11-08 08:53:09 +0000
commit98460e7a502e61f8885c6fb960f0f9fa69de4f3e (patch)
treea7c06d89a21d76a265e96a95312fbdb7cb85a579 /framework/source/fwi
parent1a743fd8a27d063525e3567619a2971770c61574 (diff)
loplugin:expandablemethods in framework
Change-Id: I444f31f06d2445392a59879c2d7fb1f8ad1c24c6 Reviewed-on: https://gerrit.libreoffice.org/30684 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'framework/source/fwi')
-rw-r--r--framework/source/fwi/uielement/constitemcontainer.cxx9
1 files changed, 1 insertions, 8 deletions
diff --git a/framework/source/fwi/uielement/constitemcontainer.cxx b/framework/source/fwi/uielement/constitemcontainer.cxx
index ad41b0f15437..9653444f9126 100644
--- a/framework/source/fwi/uielement/constitemcontainer.cxx
+++ b/framework/source/fwi/uielement/constitemcontainer.cxx
@@ -230,7 +230,7 @@ throw (css::uno::RuntimeException, std::exception)
{
// Create structure of propertysetinfo for baseclass "OPropertySetHelper".
// (Use method "getInfoHelper()".)
- static Reference< XPropertySetInfo > xInfo( createPropertySetInfo( getInfoHelper() ) );
+ static Reference< XPropertySetInfo > xInfo = new ::comphelper::PropertySetInfo(getInfoHelper().getProperties());
pInfo = &xInfo;
}
}
@@ -337,13 +337,6 @@ const css::uno::Sequence< css::beans::Property > ConstItemContainer::impl_getSta
return lPropertyDescriptor;
}
-Reference < XPropertySetInfo > ConstItemContainer::createPropertySetInfo(
- IPropertyArrayHelper & rProperties )
-{
- return static_cast<XPropertySetInfo *>(
- new ::comphelper::PropertySetInfo(rProperties.getProperties()));
-}
-
} // namespace framework
/* vim:set shiftwidth=4 softtabstop=4 expandtab: */