aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ScintillaBase.cxx
diff options
context:
space:
mode:
authornyamatongwe <devnull@localhost>2005-03-19 06:52:37 +0000
committernyamatongwe <devnull@localhost>2005-03-19 06:52:37 +0000
commit2ae0fcf5bbf73e61ac029b34544d14777baae872 (patch)
treefd9ab0c0fda9ee1269c62d6b667968ca063370f1 /src/ScintillaBase.cxx
parenta4d9b154017527faa882b8edd4991e4b8005d60c (diff)
downloadscintilla-mirror-2ae0fcf5bbf73e61ac029b34544d14777baae872.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);