From 8f2e2d474bfc5fb6b1e9850686259d336e4e1b5c Mon Sep 17 00:00:00 2001 From: John Levon Date: Wed, 27 Aug 2003 15:25:27 +0000 Subject: [PATCH] init POD members of FuncRequest git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@7617 a592a061-630c-0410-9148-cb99ea01b6c8 --- src/ChangeLog | 3 +++ src/funcrequest.C | 14 +++++++------- 2 files changed, 10 insertions(+), 7 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 828203c8f1..759645be64 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,6 @@ +2003-08-27 John Levon + + * funcrequest.C: properly initialise POD members 2003-08-27 Alfredo Braunstein diff --git a/src/funcrequest.C b/src/funcrequest.C index 1b5c4126aa..81fdaf7ad7 100644 --- a/src/funcrequest.C +++ b/src/funcrequest.C @@ -24,39 +24,39 @@ using std::endl; FuncRequest::FuncRequest() - : view_(0), action(LFUN_UNKNOWN_ACTION), button_(mouse_button::none) + : view_(0), action(LFUN_UNKNOWN_ACTION), x(0), y(0), button_(mouse_button::none) {} FuncRequest::FuncRequest(kb_action act) - : view_(0), action(act), button_(mouse_button::none) + : view_(0), action(act), x(0), y(0), button_(mouse_button::none) {} FuncRequest::FuncRequest(kb_action act, string const & arg) - : view_(0), action(act), argument(arg), button_(mouse_button::none) + : view_(0), action(act), argument(arg), x(0), y(0), button_(mouse_button::none) {} FuncRequest::FuncRequest (kb_action act, int ax, int ay, mouse_button::state button) - : view_(0), action(act), argument(), x(ax), y(ay), button_(button) + : view_(0), action(act), x(ax), y(ay), button_(button) {} FuncRequest::FuncRequest(BufferView * view, kb_action act) - : view_(view), action(act), button_(mouse_button::none) + : view_(view), action(act), x(0), y(0), button_(mouse_button::none) {} FuncRequest::FuncRequest(BufferView * view, kb_action act, string const & arg) - : view_(view), action(act), argument(arg), button_(mouse_button::none) + : view_(view), action(act), argument(arg), x(0), y(0), button_(mouse_button::none) {} FuncRequest::FuncRequest (BufferView * view, kb_action act, int ax, int ay, mouse_button::state but) - : view_(view), action(act), argument(), x(ax), y(ay), button_(but) + : view_(view), action(act), x(ax), y(ay), button_(but) {} -- 2.39.5