diff options
author | Michael Meeks <michael.meeks@collabora.com> | 2015-05-07 13:16:13 +0100 |
---|---|---|
committer | Michael Meeks <michael.meeks@collabora.com> | 2015-05-07 13:20:21 +0100 |
commit | a3deb4866890ca6d4a41df0f08107eb75b132716 (patch) | |
tree | b52e625010dceecad0d4a07c26b8a8203e5d3adb /sw | |
parent | ba17287cc8218848cc1bec69643014951a70efe8 (diff) |
tdf#91127 - audit for unfortunate SAL_NO_ACQUIRE referencing issues.
Change-Id: I738f3ea1bf9f003f2b146cda0a8f986375eacd2b
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/uibase/sidebar/PagePropertyPanel.cxx | 10 | ||||
-rw-r--r-- | sw/source/uibase/uiview/viewprt.cxx | 4 |
2 files changed, 4 insertions, 10 deletions
diff --git a/sw/source/uibase/sidebar/PagePropertyPanel.cxx b/sw/source/uibase/sidebar/PagePropertyPanel.cxx index 73bf32b90ee8..0d0ac108283f 100644 --- a/sw/source/uibase/sidebar/PagePropertyPanel.cxx +++ b/sw/source/uibase/sidebar/PagePropertyPanel.cxx @@ -95,13 +95,9 @@ VclPtr<vcl::Window> PagePropertyPanel::Create ( if (pBindings == NULL) throw ::com::sun::star::lang::IllegalArgumentException("no SfxBindings given to PagePropertyPanel::Create", NULL, 2); - return VclPtr<vcl::Window>( - VclPtr<PagePropertyPanel>::Create( - - pParent, - rxFrame, - pBindings), - SAL_NO_ACQUIRE); + return VclPtr<PagePropertyPanel>::Create( pParent, + rxFrame, + pBindings); } PagePropertyPanel::PagePropertyPanel( diff --git a/sw/source/uibase/uiview/viewprt.cxx b/sw/source/uibase/uiview/viewprt.cxx index 76cbdb39cdbe..012e0dd26042 100644 --- a/sw/source/uibase/uiview/viewprt.cxx +++ b/sw/source/uibase/uiview/viewprt.cxx @@ -259,9 +259,7 @@ VclPtr<SfxTabPage> CreatePrintOptionsPage( vcl::Window *pParent, if (!fnCreatePage) return NULL; - VclPtr<SfxTabPage> pPage = - VclPtr<SfxTabPage>((*fnCreatePage)(pParent, &rOptions), - SAL_NO_ACQUIRE); + VclPtr<SfxTabPage> pPage = fnCreatePage(pParent, &rOptions); OSL_ENSURE(pPage, "No page"); if (!pPage) return NULL; |