diff options
author | Neil <nyamatongwe@gmail.com> | 2013-09-10 14:44:16 +1000 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2013-09-10 14:44:16 +1000 |
commit | a1edd2b133bf3ae4d263cea2f46aacb4b51fccb5 (patch) | |
tree | 95cd567b68fc22493443eedd8b9e86739551d07a /src/ScintillaBase.cxx | |
parent | 790cde271408e20b2ffbbe53670e860582df29e4 (diff) | |
download | scintilla-mirror-a1edd2b133bf3ae4d263cea2f46aacb4b51fccb5.tar.gz |
Use C++ struct initialization {} so can drop -Wno-missing-braces setting for gcc.
Diffstat (limited to 'src/ScintillaBase.cxx')
-rw-r--r-- | src/ScintillaBase.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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); |