summaryrefslogtreecommitdiff
path: root/reportdesign/source/ui
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2014-05-23 22:11:27 +0200
committerJulien Nabet <serval2412@yahoo.fr>2014-05-23 22:11:52 +0200
commitac76cc7e605b1bc9c0ff8e24d0b9995a8247074e (patch)
tree797df8cc9387fa70a0c09e574f49714ce4dc6710 /reportdesign/source/ui
parent3191d7d1302dbde2445b9f300b3eb853120ede65 (diff)
Prefer cppu::UnoType<T>::get() to ::getCppuType((T*)0) part20
Change-Id: If87cdfb2c605254f6d69baa4ca5aec09091caa68
Diffstat (limited to 'reportdesign/source/ui')
-rw-r--r--reportdesign/source/ui/report/propbrw.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/reportdesign/source/ui/report/propbrw.cxx b/reportdesign/source/ui/report/propbrw.cxx
index ec347b649def..5534b5143cf9 100644
--- a/reportdesign/source/ui/report/propbrw.cxx
+++ b/reportdesign/source/ui/report/propbrw.cxx
@@ -410,7 +410,7 @@ uno::Reference< uno::XInterface> PropBrw::CreateComponentPair(OObjectBase* _pObj
uno::Reference< uno::XInterface> PropBrw::CreateComponentPair(const uno::Reference< uno::XInterface>& _xFormComponent
,const uno::Reference< uno::XInterface>& _xReportComponent)
{
- uno::Reference< container::XNameContainer > xNameCont = ::comphelper::NameContainer_createInstance(::getCppuType(static_cast<Reference<XInterface> * >(NULL)));
+ uno::Reference< container::XNameContainer > xNameCont = ::comphelper::NameContainer_createInstance(cppu::UnoType<XInterface>::get());
xNameCont->insertByName(OUString("FormComponent"),uno::makeAny(_xFormComponent));
xNameCont->insertByName(OUString("ReportComponent"),uno::makeAny(_xReportComponent));
xNameCont->insertByName(OUString("RowSet")
@@ -525,7 +525,7 @@ void PropBrw::Update( OSectionView* pNewView )
{
uno::Reference< uno::XInterface> xTemp(m_pView->getReportSection()->getSection());
m_xLastSection = xTemp;
- uno::Reference< container::XNameContainer > xNameCont = ::comphelper::NameContainer_createInstance(::getCppuType(static_cast<Reference<XInterface> * >(NULL)));
+ uno::Reference< container::XNameContainer > xNameCont = ::comphelper::NameContainer_createInstance(cppu::UnoType<XInterface>::get() );
xNameCont->insertByName(OUString("ReportComponent"),uno::makeAny(xTemp));
xTemp = xNameCont;