diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-04 14:38:56 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2015-11-04 14:42:23 +0200 |
commit | 5ced1a6e42ff7e2425a9e1c374eb25295091b26d (patch) | |
tree | b7649b7942cd494bbbbeaa6cdbee93ed492d8e7b /reportdesign | |
parent | 8f93d4a159e599fe7191e7f7b8e52e2775fefdf5 (diff) |
use uno::Reference::set method instead of assignment
Change-Id: I1c7240fe2e2b5eb825f028ca7502e5ba8793046b
Diffstat (limited to 'reportdesign')
4 files changed, 7 insertions, 7 deletions
diff --git a/reportdesign/source/core/api/Function.cxx b/reportdesign/source/core/api/Function.cxx index fd9c96cf323f..6b7ca7282310 100644 --- a/reportdesign/source/core/api/Function.cxx +++ b/reportdesign/source/core/api/Function.cxx @@ -199,7 +199,7 @@ void SAL_CALL OFunction::setParent( const uno::Reference< uno::XInterface >& Par m_xParent = xFunctions; } else - m_xParent = uno::WeakReference< report::XFunctions >(); + m_xParent.clear(); } diff --git a/reportdesign/source/core/api/ReportDefinition.cxx b/reportdesign/source/core/api/ReportDefinition.cxx index 9fde244ed123..8d622af3a1f5 100644 --- a/reportdesign/source/core/api/ReportDefinition.cxx +++ b/reportdesign/source/core/api/ReportDefinition.cxx @@ -2526,7 +2526,7 @@ uno::Reference< frame::XTitle > OReportDefinition::impl_getTitleHelper_throw() uno::Reference< frame::XModel > xThis(static_cast< frame::XModel* >(this), uno::UNO_QUERY_THROW); ::framework::TitleHelper* pHelper = new ::framework::TitleHelper( m_aProps->m_xContext ); - m_pImpl->m_xTitleHelper = uno::Reference< frame::XTitle >(static_cast< ::cppu::OWeakObject* >(pHelper), uno::UNO_QUERY_THROW); + m_pImpl->m_xTitleHelper.set(static_cast< ::cppu::OWeakObject* >(pHelper), uno::UNO_QUERY_THROW); pHelper->setOwner (xThis ); pHelper->connectWithUntitledNumbers (uno::Reference<frame::XUntitledNumbers>(xDesktop, uno::UNO_QUERY_THROW)); } @@ -2543,9 +2543,9 @@ uno::Reference< frame::XUntitledNumbers > OReportDefinition::impl_getUntitledHel if ( ! m_pImpl->m_xNumberedControllers.is ()) { - uno::Reference< frame::XModel > xThis (static_cast< frame::XModel* >(this), uno::UNO_QUERY_THROW); - ::comphelper::NumberedCollection* pHelper = new ::comphelper::NumberedCollection(); - m_pImpl->m_xNumberedControllers = uno::Reference< frame::XUntitledNumbers >(static_cast< ::cppu::OWeakObject* >(pHelper), uno::UNO_QUERY_THROW); + uno::Reference< frame::XModel > xThis(static_cast< frame::XModel* >(this), uno::UNO_QUERY_THROW); + ::comphelper::NumberedCollection* pHelper = new ::comphelper::NumberedCollection(); + m_pImpl->m_xNumberedControllers.set(static_cast< ::cppu::OWeakObject* >(pHelper), uno::UNO_QUERY_THROW); pHelper->setOwner (xThis); pHelper->setUntitledPrefix (OUString(" : ")); diff --git a/reportdesign/source/ui/report/FixedTextColor.cxx b/reportdesign/source/ui/report/FixedTextColor.cxx index d159248a2279..a55c8d193dad 100644 --- a/reportdesign/source/ui/report/FixedTextColor.cxx +++ b/reportdesign/source/ui/report/FixedTextColor.cxx @@ -190,7 +190,7 @@ namespace rptui uno::Reference<awt::XVclWindowPeer> xVclWindowPeer; uno::Reference<awt::XControl> xControl = getXControl(_xComponent); - xVclWindowPeer = uno::Reference<awt::XVclWindowPeer>( xControl->getPeer(), uno::UNO_QUERY); + xVclWindowPeer.set( xControl->getPeer(), uno::UNO_QUERY); return xVclWindowPeer; } diff --git a/reportdesign/source/ui/report/FormattedFieldBeautifier.cxx b/reportdesign/source/ui/report/FormattedFieldBeautifier.cxx index a3c08a7982a6..10736ae36814 100644 --- a/reportdesign/source/ui/report/FormattedFieldBeautifier.cxx +++ b/reportdesign/source/ui/report/FormattedFieldBeautifier.cxx @@ -178,7 +178,7 @@ namespace rptui OReportSection& aOutputDevice = pSectionWindow->getReportSection(); // OutputDevice OSectionView& aSdrView = aOutputDevice.getSectionView(); // SdrView uno::Reference<awt::XControl> xControl = pUnoObj->GetUnoControl(aSdrView, aOutputDevice); - xVclWindowPeer = uno::Reference<awt::XVclWindowPeer>( xControl->getPeer(), uno::UNO_QUERY); + xVclWindowPeer.set( xControl->getPeer(), uno::UNO_QUERY); } } } |