From a1edd2b133bf3ae4d263cea2f46aacb4b51fccb5 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 10 Sep 2013 14:44:16 +1000 Subject: Use C++ struct initialization {} so can drop -Wno-missing-braces setting for gcc. --- src/ScintillaBase.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/ScintillaBase.cxx') diff --git a/src/ScintillaBase.cxx b/src/ScintillaBase.cxx index 75f0d5a16..b06f72836 100644 --- a/src/ScintillaBase.cxx +++ b/src/ScintillaBase.cxx @@ -289,7 +289,7 @@ void ScintillaBase::AutoCompleteStart(int lenEntered, const char *list) { void ScintillaBase::AutoCompleteCancel() { if (ac.Active()) { - SCNotification scn = {0}; + SCNotification scn = {}; scn.nmhdr.code = SCN_AUTOCCANCELLED; scn.wParam = 0; scn.listType = 0; @@ -325,7 +325,7 @@ void ScintillaBase::AutoCompleteCharacterDeleted() { } else { AutoCompleteMoveToCurrentWord(); } - SCNotification scn = {0}; + SCNotification scn = {}; scn.nmhdr.code = SCN_AUTOCCHARDELETED; scn.wParam = 0; scn.listType = 0; @@ -342,7 +342,7 @@ void ScintillaBase::AutoCompleteCompleted() { ac.Show(false); - SCNotification scn = {0}; + SCNotification scn = {}; scn.nmhdr.code = listType > 0 ? SCN_USERLISTSELECTION : SCN_AUTOCSELECTION; scn.message = 0; scn.wParam = listType; @@ -434,7 +434,7 @@ void ScintillaBase::CallTipShow(Point pt, const char *defn) { } void ScintillaBase::CallTipClick() { - SCNotification scn = {0}; + SCNotification scn = {}; scn.nmhdr.code = SCN_CALLTIPCLICK; scn.position = ct.clickPlace; NotifyParent(scn); -- cgit v1.2.3