summaryrefslogtreecommitdiff
path: root/include/vcl/GestureEvent.hxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-07-15 19:55:59 +0100
committerCaolán McNamara <caolanm@redhat.com>2019-07-15 22:31:37 +0200
commitfc3081a9c4e92229ebcd07b6326f1fc49f21e029 (patch)
tree1eb223b4b30c535fdd8fc5b6162a8960d053b73e /include/vcl/GestureEvent.hxx
parente64d42d5a8f0e6f929e2a416020d2e7029b054fb (diff)
cid#1448245 uninit scalar field
and cid#1448340 uninit scalar field Change-Id: Idfd0944c1a6765593e334b1db56a80e144aedd5e Reviewed-on: https://gerrit.libreoffice.org/75651 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
Diffstat (limited to 'include/vcl/GestureEvent.hxx')
-rw-r--r--include/vcl/GestureEvent.hxx19
1 files changed, 19 insertions, 0 deletions
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