summaryrefslogtreecommitdiff
path: root/sfx2/source
diff options
context:
space:
mode:
authorStephan Bergmann <sbergman@redhat.com>2016-08-26 12:40:43 +0200
committerStephan Bergmann <sbergman@redhat.com>2016-08-26 12:40:43 +0200
commit28cb2c1764f2365d69ce09cb69f0f5a676458a33 (patch)
tree614b44a9dc1b4928af5db1880e9869cd3e997eb1 /sfx2/source
parent6a1bebcc890c04acdc79236ff54cdd49b27be71a (diff)
loplugin:refcounting: also cover temporaries being directly stack managed
Change-Id: Ib0f7c60df1d2fba0d4d9d3fa6faf3bb97867ebc0
Diffstat (limited to 'sfx2/source')
-rw-r--r--sfx2/source/doc/objxtor.cxx2
-rw-r--r--sfx2/source/notify/eventsupplier.cxx2
2 files changed, 2 insertions, 2 deletions
diff --git a/sfx2/source/doc/objxtor.cxx b/sfx2/source/doc/objxtor.cxx
index f3cc4f2d716a..5ce07891d709 100644
--- a/sfx2/source/doc/objxtor.cxx
+++ b/sfx2/source/doc/objxtor.cxx
@@ -866,7 +866,7 @@ uno::Sequence< OUString > SfxObjectShell::GetEventNames()
SolarMutexGuard aGuard;
if ( !pEventNameContainer )
{
- static uno::Sequence< OUString > aEventNameContainer = GlobalEventConfig().getElementNames();
+ static uno::Sequence< OUString > aEventNameContainer = rtl::Reference<GlobalEventConfig>(new GlobalEventConfig)->getElementNames();
pEventNameContainer = &aEventNameContainer;
}
}
diff --git a/sfx2/source/notify/eventsupplier.cxx b/sfx2/source/notify/eventsupplier.cxx
index 0e8d2c42c42e..6c54b467c488 100644
--- a/sfx2/source/notify/eventsupplier.cxx
+++ b/sfx2/source/notify/eventsupplier.cxx
@@ -317,7 +317,7 @@ SfxEvents_Impl::SfxEvents_Impl( SfxObjectShell* pShell,
if ( pShell )
maEventNames = pShell->GetEventNames();
else
- maEventNames = GlobalEventConfig().getElementNames();
+ maEventNames = rtl::Reference<GlobalEventConfig>(new GlobalEventConfig)->getElementNames();
maEventData = uno::Sequence < uno::Any > ( maEventNames.getLength() );