diff options
author | Noel Grandin <noel@peralex.com> | 2015-11-16 09:40:28 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2015-11-16 11:37:11 +0000 |
commit | 21a9bc8716a88fa2472c525b2e6f84fe1213a8f8 (patch) | |
tree | a162ac3df92c1f1dfef046ab6426ffc9ca5d2b7b /sd | |
parent | b317d5fbb5a0a8dc695391de3f9f6ee339341987 (diff) |
no need to take a mutex when only dealing with stack-local data
Change-Id: Ie45e626aad55a8174a53b769a98601bf54dedf65
Reviewed-on: https://gerrit.libreoffice.org/19979
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/unoidl/unolayer.cxx | 3 | ||||
-rw-r--r-- | sd/source/ui/unoidl/unopage.cxx | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sd/source/ui/unoidl/unolayer.cxx b/sd/source/ui/unoidl/unolayer.cxx index 45d040baadd8..66658f9bd50e 100644 --- a/sd/source/ui/unoidl/unolayer.cxx +++ b/sd/source/ui/unoidl/unolayer.cxx @@ -478,8 +478,7 @@ sal_Bool SAL_CALL SdLayerManager::supportsService( const OUString& ServiceName ) uno::Sequence< OUString > SAL_CALL SdLayerManager::getSupportedServiceNames() throw(uno::RuntimeException, std::exception) { - OUString aServiceName(UNO_PREFIX "drawing.LayerManager"); - uno::Sequence< OUString > aSeq( &aServiceName, 1 ); + uno::Sequence< OUString > aSeq { UNO_PREFIX "drawing.LayerManager" }; return aSeq; } diff --git a/sd/source/ui/unoidl/unopage.cxx b/sd/source/ui/unoidl/unopage.cxx index 35a42d7532f4..98a9aa34257a 100644 --- a/sd/source/ui/unoidl/unopage.cxx +++ b/sd/source/ui/unoidl/unopage.cxx @@ -2036,8 +2036,7 @@ sal_Bool SAL_CALL SdPageLinkTargets::supportsService( const OUString& ServiceNam Sequence< OUString > SAL_CALL SdPageLinkTargets::getSupportedServiceNames() throw(uno::RuntimeException, std::exception) { - const OUString aSN( "com.sun.star.document.LinkTargets" ); - Sequence< OUString > aSeq( &aSN, 1); + Sequence< OUString > aSeq { "com.sun.star.document.LinkTargets" }; return aSeq; } |