From fc3081a9c4e92229ebcd07b6326f1fc49f21e029 Mon Sep 17 00:00:00 2001 From: Caolán McNamara Date: Mon, 15 Jul 2019 19:55:59 +0100 Subject: cid#1448245 uninit scalar field MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit and cid#1448340 uninit scalar field Change-Id: Idfd0944c1a6765593e334b1db56a80e144aedd5e Reviewed-on: https://gerrit.libreoffice.org/75651 Tested-by: Jenkins Reviewed-by: Caolán McNamara Tested-by: Caolán McNamara --- include/vcl/GestureEvent.hxx | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'include/vcl/GestureEvent.hxx') diff --git a/include/vcl/GestureEvent.hxx b/include/vcl/GestureEvent.hxx index 2070fc76d39a..7b6f25719c7a 100644 --- a/include/vcl/GestureEvent.hxx +++ b/include/vcl/GestureEvent.hxx @@ -35,6 +35,25 @@ public: sal_Int32 mnOffset; PanningOrientation meOrientation; + + GestureEvent() + : mnX(0) + , mnY(0) + , meEventType(GestureEventType::PanningBegin) + , mnOffset(0) + , meOrientation(PanningOrientation::Horizontal) + { + } + + GestureEvent(sal_Int32 nX, sal_Int32 nY, GestureEventType eEventType, sal_Int32 nOffset, + PanningOrientation eOrientation) + : mnX(nX) + , mnY(nY) + , meEventType(eEventType) + , mnOffset(nOffset) + , meOrientation(eOrientation) + { + } }; #endif // INCLUDED_VCL_GESTUREEVENT_HXX -- cgit