diff options
author | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-19 15:34:58 +0200 |
---|---|---|
committer | Noel Grandin <noel.grandin@collabora.co.uk> | 2022-05-20 08:03:27 +0200 |
commit | f2c02331a7dc0a924bbf30cbc279e92621e89590 (patch) | |
tree | d92115757b20ff0da9a85ab6ff420784d89bce11 /vcl | |
parent | 66d8951df3c11ead0b9415eb292c3ae88689edf1 (diff) |
new loplugin:unnecessary locking
off by default, since each warning needs careful inspection
Change-Id: I805c1d1cdde531a1afdc76e87b22f879fc3c9753
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/134641
Tested-by: Jenkins
Reviewed-by: Noel Grandin <noel.grandin@collabora.co.uk>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/graphic/UnoGraphicProvider.cxx | 4 | ||||
-rw-r--r-- | vcl/source/uitest/uno/uitest_uno.cxx | 5 |
2 files changed, 0 insertions, 9 deletions
diff --git a/vcl/source/graphic/UnoGraphicProvider.cxx b/vcl/source/graphic/UnoGraphicProvider.cxx index cab6659ce010..1f33a14ea1bc 100644 --- a/vcl/source/graphic/UnoGraphicProvider.cxx +++ b/vcl/source/graphic/UnoGraphicProvider.cxx @@ -438,8 +438,6 @@ uno::Reference< ::graphic::XGraphic > SAL_CALL GraphicProvider::queryGraphic( co uno::Sequence< uno::Reference<graphic::XGraphic> > SAL_CALL GraphicProvider::queryGraphics(const uno::Sequence< uno::Sequence<beans::PropertyValue> >& rMediaPropertiesSeq) { - SolarMutexGuard aGuard; - // Turn properties into streams. std::vector< std::unique_ptr<SvStream> > aStreams; for (const auto& rMediaProperties : rMediaPropertiesSeq) @@ -701,8 +699,6 @@ void ImplApplyFilterData( ::Graphic& rGraphic, const uno::Sequence< beans::Prope void SAL_CALL GraphicProvider::storeGraphic( const uno::Reference< ::graphic::XGraphic >& rxGraphic, const uno::Sequence< beans::PropertyValue >& rMediaProperties ) { - SolarMutexGuard g; - std::unique_ptr<SvStream> pOStm; OUString aPath; diff --git a/vcl/source/uitest/uno/uitest_uno.cxx b/vcl/source/uitest/uno/uitest_uno.cxx index 4e5a6e0e0391..48fa2ef67967 100644 --- a/vcl/source/uitest/uno/uitest_uno.cxx +++ b/vcl/source/uitest/uno/uitest_uno.cxx @@ -66,33 +66,28 @@ UITestUnoObj::UITestUnoObj(): sal_Bool SAL_CALL UITestUnoObj::executeCommand(const OUString& rCommand) { - SolarMutexGuard aGuard; return UITest::executeCommand(rCommand); } sal_Bool SAL_CALL UITestUnoObj::executeCommandWithParameters(const OUString& rCommand, const css::uno::Sequence< css::beans::PropertyValue >& rArgs) { - SolarMutexGuard aGuard; return UITest::executeCommandWithParameters(rCommand,rArgs); } sal_Bool SAL_CALL UITestUnoObj::executeDialog(const OUString& rCommand) { - SolarMutexGuard aGuard; return UITest::executeDialog(rCommand); } css::uno::Reference<css::ui::test::XUIObject> SAL_CALL UITestUnoObj::getTopFocusWindow() { - SolarMutexGuard aGuard; std::unique_ptr<UIObject> pObj = UITest::getFocusTopWindow(); return new UIObjectUnoObj(std::move(pObj)); } css::uno::Reference<css::ui::test::XUIObject> SAL_CALL UITestUnoObj::getFloatWindow() { - SolarMutexGuard aGuard; std::unique_ptr<UIObject> pObj = UITest::getFloatWindow(); return new UIObjectUnoObj(std::move(pObj)); } |