Remove initializations which are the default value

This commit is contained in:
Paul Cornett
2019-02-25 10:49:04 -08:00
parent 7c3ce912e0
commit 1e753f97ba
10 changed files with 3 additions and 25 deletions

View File

@@ -125,8 +125,6 @@ Edit::Edit (wxWindow *parent, wxWindowID id,
long style)
: wxStyledTextCtrl (parent, id, pos, size, style) {
m_filename = wxEmptyString;
m_LineNrID = 0;
m_DividerID = 1;
m_FoldingID = 2;
@@ -760,7 +758,7 @@ EditProperties::EditProperties (Edit *edit,
text = wxString::Format ("%d", edit->GetLexer());
textinfo->Add (new wxStaticText (this, wxID_ANY, text),
0, wxALIGN_RIGHT|wxALIGN_CENTER_VERTICAL|wxRIGHT, 4);
wxString EOLtype = wxEmptyString;
wxString EOLtype;
switch (edit->GetEOLMode()) {
case wxSTC_EOL_CR: {EOLtype = "CR (Unix)"; break; }
case wxSTC_EOL_CRLF: {EOLtype = "CRLF (Windows)"; break; }