summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2018-02-09 21:09:36 +0000
committerCaolán McNamara <caolanm@redhat.com>2018-02-10 17:39:04 +0100
commitdcfa2cb4e8f2ce94c5c723efe49961c3b8004c93 (patch)
tree83c31dc14f1dfb397b65018573990778ae14b39f
parent741ef849587078ca9911514afd4c0ecbdec271cc (diff)
coverity#1401328 Uncaught exception
Change-Id: Idc2363f80026370953f5c48a9d0eeb396a43362c Reviewed-on: https://gerrit.libreoffice.org/49526 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
-rw-r--r--editeng/source/editeng/impedit.hxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/editeng/source/editeng/impedit.hxx b/editeng/source/editeng/impedit.hxx
index 1f651ea7f43d..dc5ac2ff01b9 100644
--- a/editeng/source/editeng/impedit.hxx
+++ b/editeng/source/editeng/impedit.hxx
@@ -56,6 +56,7 @@
#include <i18nlangtag/lang.h>
#include <rtl/ref.hxx>
#include <LibreOfficeKit/LibreOfficeKitTypes.h>
+#include <o3tl/deleter.hxx>
#include <o3tl/typed_flags_set.hxx>
#include <memory>
@@ -225,7 +226,7 @@ class ImpEditView : public vcl::unohelper::DragAndDropClient
private:
EditView* pEditView;
- std::unique_ptr<vcl::Cursor> pCursor;
+ std::unique_ptr<vcl::Cursor, o3tl::default_delete<vcl::Cursor>> pCursor;
std::unique_ptr<Color> pBackgroundColor;
/// Containing view shell, if any.
OutlinerViewShell* mpViewShell;