summaryrefslogtreecommitdiff
path: root/sd/source/ui/func/fuolbull.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-08-25 11:09:38 +0100
committerCaolán McNamara <caolanm@redhat.com>2017-10-21 10:36:39 +0200
commite26f8d2592a3d7cc5b43b3246b364397dd704f0d (patch)
tree8677f333ba26a23f2999ab3a083696a8d2e29b74 /sd/source/ui/func/fuolbull.cxx
parent3dce7bd77c56e61cd9457b03e8cf4137a7630eb9 (diff)
coverity#1401307 document checked 'Uncaught exception'
markup std::unique_ptr where coverity warns a dtor might throw exceptions which won't throw in practice, or where std::terminate is an acceptable response if they do Change-Id: Icc99cdecf8d8b011e599574f0a05b59efd1c65c2 Reviewed-on: https://gerrit.libreoffice.org/41561 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'sd/source/ui/func/fuolbull.cxx')
-rw-r--r--sd/source/ui/func/fuolbull.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/func/fuolbull.cxx b/sd/source/ui/func/fuolbull.cxx
index 03deeed1b511..4461dfade3bb 100644
--- a/sd/source/ui/func/fuolbull.cxx
+++ b/sd/source/ui/func/fuolbull.cxx
@@ -97,7 +97,7 @@ void FuOutlineBullet::DoExecute( SfxRequest& rReq )
OutlinerView* pOLV = mpView->GetTextEditOutlinerView();
- std::unique_ptr< OutlineViewModelChangeGuard > aGuard;
+ std::unique_ptr<OutlineViewModelChangeGuard, o3tl::default_delete<OutlineViewModelChangeGuard>> aGuard;
if (OutlineView* pView = dynamic_cast<OutlineView*>(mpView))
{
@@ -232,7 +232,7 @@ void FuOutlineBullet::SetCurrentBulletsNumbering(SfxRequest& rReq)
}
OutlinerView* pOLV = mpView->GetTextEditOutlinerView();
- std::unique_ptr< OutlineViewModelChangeGuard > aGuard;
+ std::unique_ptr<OutlineViewModelChangeGuard, o3tl::default_delete<OutlineViewModelChangeGuard>> aGuard;
if (OutlineView* pView = dynamic_cast<OutlineView*>(mpView))
{
pOLV = pView->GetViewByWindow(mpViewShell->GetActiveWindow());