aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
authornyamatongwe <unknown>2005-03-19 06:52:37 +0000
committernyamatongwe <unknown>2005-03-19 06:52:37 +0000
commit6007ca5bf84031f6e353d05907f195ef448769ca (patch)
treefd9ab0c0fda9ee1269c62d6b667968ca063370f1 /src/ScintillaBase.cxx
parent2a7a8b7e99b33159957d6b6ca9fbb7c77aab738c (diff)
downloadscintilla-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.cxx4
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);