diff options
author | nyamatongwe <unknown> | 2005-03-19 06:52:37 +0000 |
---|---|---|
committer | nyamatongwe <unknown> | 2005-03-19 06:52:37 +0000 |
commit | 6007ca5bf84031f6e353d05907f195ef448769ca (patch) | |
tree | fd9ab0c0fda9ee1269c62d6b667968ca063370f1 /src/ScintillaBase.cxx | |
parent | 2a7a8b7e99b33159957d6b6ca9fbb7c77aab738c (diff) | |
download | scintilla-mirror-6007ca5bf84031f6e353d05907f195ef448769ca.tar.gz |
Initialise all SCNotification structs to {0} ensuring all fields are 0 or
NULL. Added options to make files so that this does trigger warnings.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r-- | src/ScintillaBase.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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); |