From 9f81582c7e998f26a0f499ba2ef9c845b9df2358 Mon Sep 17 00:00:00 2001 From: Michael Meeks Date: Tue, 21 Apr 2015 17:03:46 +0100 Subject: Remove erroneous SAL_NO_ACQUIRE pieces introduced in error. Change-Id: If8cd8fafea1f88360d86552ac94a985b1d1feae8 --- dbaccess/source/ui/misc/WNameMatch.cxx | 2 +- svtools/source/brwbox/brwbox1.cxx | 3 +-- svx/source/sidebar/area/AreaPropertyPanel.cxx | 7 ++----- svx/source/sidebar/graphic/GraphicPropertyPanel.cxx | 7 ++----- svx/source/sidebar/line/LinePropertyPanel.cxx | 4 +--- svx/source/sidebar/paragraph/ParaPropertyPanel.cxx | 7 ++----- svx/source/sidebar/possize/PosSizePropertyPanel.cxx | 7 ++----- svx/source/sidebar/text/TextPropertyPanel.cxx | 7 ++----- sw/source/uibase/sidebar/WrapPropertyPanel.cxx | 7 ++----- 9 files changed, 15 insertions(+), 36 deletions(-) diff --git a/dbaccess/source/ui/misc/WNameMatch.cxx b/dbaccess/source/ui/misc/WNameMatch.cxx index 3ddbc83ec517..46c7634dd976 100644 --- a/dbaccess/source/ui/misc/WNameMatch.cxx +++ b/dbaccess/source/ui/misc/WNameMatch.cxx @@ -374,7 +374,7 @@ OColumnTreeBox::OColumnTreeBox( vcl::Window* pParent, WinBits nBits ) extern "C" SAL_DLLPUBLIC_EXPORT vcl::Window* SAL_CALL makeOColumnTreeBox(vcl::Window *pParent, VclBuilder::stringmap &) { - return new OColumnTreeBox(pParent, SAL_NO_ACQUIRE); + return new OColumnTreeBox(pParent); } void OColumnTreeBox::InitEntry(SvTreeListEntry* pEntry, const OUString& rStr, const Image& rImg1, const Image& rImg2, SvLBoxButtonKind eButtonKind) diff --git a/svtools/source/brwbox/brwbox1.cxx b/svtools/source/brwbox/brwbox1.cxx index b13cc7c8941b..0b5d82978c77 100644 --- a/svtools/source/brwbox/brwbox1.cxx +++ b/svtools/source/brwbox/brwbox1.cxx @@ -2286,8 +2286,7 @@ void BrowseBox::SetMode( BrowserMode nMode ) ( nMode & BROWSER_TRACKING_TIPS ) == BROWSER_TRACKING_TIPS ? VclPtr::Create( this, nVScrollWinBits, static_cast( pDataWin.get() ) ) - : VclPtr::Create( this, nVScrollWinBits ), - SAL_NO_ACQUIRE); + : VclPtr::Create( this, nVScrollWinBits )); pVScroll->SetLineSize( 1 ); pVScroll->SetPageSize(1); pVScroll->SetScrollHdl( LINK( this, BrowseBox, ScrollHdl ) ); diff --git a/svx/source/sidebar/area/AreaPropertyPanel.cxx b/svx/source/sidebar/area/AreaPropertyPanel.cxx index 78d948e9a5e5..64f8c2f1bdd4 100644 --- a/svx/source/sidebar/area/AreaPropertyPanel.cxx +++ b/svx/source/sidebar/area/AreaPropertyPanel.cxx @@ -539,13 +539,10 @@ VclPtr AreaPropertyPanel::Create ( if (pBindings == NULL) throw lang::IllegalArgumentException("no SfxBindings given to AreaPropertyPanel::Create", NULL, 2); - return VclPtr( - VclPtr::Create( - + return VclPtr::Create( pParent, rxFrame, - pBindings), - SAL_NO_ACQUIRE); + pBindings); } diff --git a/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx b/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx index 81b0cac29732..3b144644e615 100644 --- a/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx +++ b/svx/source/sidebar/graphic/GraphicPropertyPanel.cxx @@ -254,13 +254,10 @@ VclPtr GraphicPropertyPanel::Create ( if (pBindings == NULL) throw lang::IllegalArgumentException("no SfxBindings given to GraphicPropertyPanel::Create", NULL, 2); - return VclPtr( - VclPtr::Create( - + return VclPtr::Create( pParent, rxFrame, - pBindings), - SAL_NO_ACQUIRE); + pBindings); } diff --git a/svx/source/sidebar/line/LinePropertyPanel.cxx b/svx/source/sidebar/line/LinePropertyPanel.cxx index b90165d701d0..37d7402fef0c 100644 --- a/svx/source/sidebar/line/LinePropertyPanel.cxx +++ b/svx/source/sidebar/line/LinePropertyPanel.cxx @@ -310,9 +310,7 @@ VclPtr LinePropertyPanel::Create ( if (pBindings == NULL) throw lang::IllegalArgumentException("no SfxBindings given to LinePropertyPanel::Create", NULL, 2); - return VclPtr( - VclPtr::Create(pParent, rxFrame, pBindings), - SAL_NO_ACQUIRE); + return VclPtr::Create(pParent, rxFrame, pBindings); } void LinePropertyPanel::DataChanged(const DataChangedEvent& /*rEvent*/) diff --git a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx index 080558a55485..e74ad60b53ad 100644 --- a/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx +++ b/svx/source/sidebar/paragraph/ParaPropertyPanel.cxx @@ -68,14 +68,11 @@ VclPtr ParaPropertyPanel::Create ( if (pBindings == NULL) throw lang::IllegalArgumentException("no SfxBindings given to ParaPropertyPanel::Create", NULL, 2); - return VclPtr( - VclPtr::Create( - + return VclPtr::Create( pParent, rxFrame, pBindings, - rxSidebar), - SAL_NO_ACQUIRE); + rxSidebar); } void ParaPropertyPanel::HandleContextChange ( diff --git a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx index f675c30d08ce..3d64e9636526 100644 --- a/svx/source/sidebar/possize/PosSizePropertyPanel.cxx +++ b/svx/source/sidebar/possize/PosSizePropertyPanel.cxx @@ -260,14 +260,11 @@ VclPtr PosSizePropertyPanel::Create ( if (pBindings == NULL) throw lang::IllegalArgumentException("no SfxBindings given to PosSizePropertyPanel::Create", NULL, 2); - return VclPtr( - VclPtr::Create( - + return VclPtr::Create( pParent, rxFrame, pBindings, - rxSidebar), - SAL_NO_ACQUIRE); + rxSidebar); } diff --git a/svx/source/sidebar/text/TextPropertyPanel.cxx b/svx/source/sidebar/text/TextPropertyPanel.cxx index 295e3e2409ad..35a9aca940d3 100644 --- a/svx/source/sidebar/text/TextPropertyPanel.cxx +++ b/svx/source/sidebar/text/TextPropertyPanel.cxx @@ -75,14 +75,11 @@ VclPtr TextPropertyPanel::Create ( if (pBindings == NULL) throw lang::IllegalArgumentException("no SfxBindings given to TextPropertyPanel::Create", NULL, 2); - return VclPtr< vcl::Window >( - VclPtr::Create( - + return VclPtr::Create( pParent, rxFrame, pBindings, - rContext), - SAL_NO_ACQUIRE); + rContext); } diff --git a/sw/source/uibase/sidebar/WrapPropertyPanel.cxx b/sw/source/uibase/sidebar/WrapPropertyPanel.cxx index 76db6711d8fd..2dfe37c4b8c6 100644 --- a/sw/source/uibase/sidebar/WrapPropertyPanel.cxx +++ b/sw/source/uibase/sidebar/WrapPropertyPanel.cxx @@ -54,13 +54,10 @@ VclPtr WrapPropertyPanel::Create ( if (pBindings == NULL) throw ::com::sun::star::lang::IllegalArgumentException("no SfxBindings given to WrapPropertyPanel::Create", NULL, 2); - return VclPtr( - VclPtr::Create( - + return VclPtr::Create( pParent, rxFrame, - pBindings), - SAL_NO_ACQUIRE); + pBindings); } WrapPropertyPanel::WrapPropertyPanel( -- cgit