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 /sc | |
parent | ba17287cc8218848cc1bec69643014951a70efe8 (diff) |
tdf#91127 - audit for unfortunate SAL_NO_ACQUIRE referencing issues.
Change-Id: I738f3ea1bf9f003f2b146cda0a8f986375eacd2b
Diffstat (limited to 'sc')
-rw-r--r-- | sc/source/ui/view/prevwsh.cxx | 3 | ||||
-rw-r--r-- | sc/source/ui/view/tabvwsh4.cxx | 5 |
2 files changed, 3 insertions, 5 deletions
diff --git a/sc/source/ui/view/prevwsh.cxx b/sc/source/ui/view/prevwsh.cxx index 970eff0ce189..b18846486550 100644 --- a/sc/source/ui/view/prevwsh.cxx +++ b/sc/source/ui/view/prevwsh.cxx @@ -538,8 +538,7 @@ VclPtr<SfxTabPage> ScPreviewShell::CreatePrintOptionsPage( vcl::Window *pParent, OSL_ENSURE(pFact, "ScAbstractFactory create fail!"); ::CreateTabPage ScTpPrintOptionsCreate = pFact->GetTabPageCreatorFunc( RID_SCPAGE_PRINT ); if ( ScTpPrintOptionsCreate ) - return VclPtr<SfxTabPage>((*ScTpPrintOptionsCreate)( pParent, &rOptions), - SAL_NO_ACQUIRE); + return ScTpPrintOptionsCreate( pParent, &rOptions ); return VclPtr<SfxTabPage>(); } diff --git a/sc/source/ui/view/tabvwsh4.cxx b/sc/source/ui/view/tabvwsh4.cxx index dc2817df36cd..64a6e9f0f063 100644 --- a/sc/source/ui/view/tabvwsh4.cxx +++ b/sc/source/ui/view/tabvwsh4.cxx @@ -1067,10 +1067,9 @@ VclPtr<SfxTabPage> ScTabViewShell::CreatePrintOptionsPage( vcl::Window *pParent, { ScAbstractDialogFactory* pFact = ScAbstractDialogFactory::Create(); OSL_ENSURE(pFact, "ScAbstractFactory create fail!"); - ::CreateTabPage ScTpPrintOptionsCreate = pFact->GetTabPageCreatorFunc( RID_SCPAGE_PRINT ); + ::CreateTabPage ScTpPrintOptionsCreate = pFact->GetTabPageCreatorFunc( RID_SCPAGE_PRINT ); if ( ScTpPrintOptionsCreate ) - return VclPtr<SfxTabPage>((*ScTpPrintOptionsCreate)( pParent, &rOptions), - SAL_NO_ACQUIRE); + return ScTpPrintOptionsCreate( pParent, &rOptions ); return VclPtr<SfxTabPage>(); } |