summaryrefslogtreecommitdiff
path: root/sfx2/source/config/evntconf.cxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2015-11-05 08:52:58 +0200
committerNoel Grandin <noel@peralex.com>2015-11-05 09:59:30 +0200
commitc8782b39116eee3ddc3ef0a38c6f6dde09b6ec00 (patch)
treea37c11f8ec6436d00b36fec99027bb3b06668372 /sfx2/source/config/evntconf.cxx
parentb46496c4154ff3784ecd59ed6e15b6ee07a66f22 (diff)
use uno::Reference::set method instead of assignment
Change-Id: Id9e7621ca7170d6cc80d8ce14f155ce564691ec0
Diffstat (limited to 'sfx2/source/config/evntconf.cxx')
-rw-r--r--sfx2/source/config/evntconf.cxx7
1 files changed, 3 insertions, 4 deletions
diff --git a/sfx2/source/config/evntconf.cxx b/sfx2/source/config/evntconf.cxx
index 9df4ad094384..3005e084b756 100644
--- a/sfx2/source/config/evntconf.cxx
+++ b/sfx2/source/config/evntconf.cxx
@@ -225,13 +225,12 @@ void PropagateEvent_Impl( SfxObjectShell *pDoc, const OUString& aEventName, cons
uno::Reference < document::XEventsSupplier > xSupplier;
if ( pDoc )
{
- xSupplier = uno::Reference < document::XEventsSupplier >( pDoc->GetModel(), uno::UNO_QUERY );
+ xSupplier.set( pDoc->GetModel(), uno::UNO_QUERY );
}
else
{
- xSupplier = uno::Reference < document::XEventsSupplier >
- ( frame::theGlobalEventBroadcaster::get(::comphelper::getProcessComponentContext()),
- uno::UNO_QUERY );
+ xSupplier.set( frame::theGlobalEventBroadcaster::get(::comphelper::getProcessComponentContext()),
+ uno::UNO_QUERY );
}
if ( xSupplier.is() )