From 6007ca5bf84031f6e353d05907f195ef448769ca Mon Sep 17 00:00:00 2001 From: nyamatongwe Date: Sat, 19 Mar 2005 06:52:37 +0000 Subject: Initialise all SCNotification structs to {0} ensuring all fields are 0 or NULL. Added options to make files so that this does trigger warnings. --- src/ScintillaBase.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/ScintillaBase.cxx') diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 7735d35db..9526ab968 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -320,7 +320,7 @@ void ScintillaBase::AutoCompleteCompleted() { ac.Show(false); listSelected = selected; - SCNotification scn; + SCNotification scn = {0}; scn.nmhdr.code = listType > 0 ? SCN_USERLISTSELECTION : SCN_AUTOCSELECTION; scn.message = 0; scn.wParam = listType; @@ -384,7 +384,7 @@ void ScintillaBase::CallTipShow(Point pt, const char *defn) { } void ScintillaBase::CallTipClick() { - SCNotification scn; + SCNotification scn = {0}; scn.nmhdr.code = SCN_CALLTIPCLICK; scn.position = ct.clickPlace; NotifyParent(scn); -- cgit v1.2.3