aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2024-09-28 08:36:22 +1000
committerNeil <nyamatongwe@gmail.com>2024-09-28 08:36:22 +1000
commita63766d101df9ce02cef81ada9f8216dd4e008f0 (patch)
tree08e291c52b1b67a774769fbb94bec460962bfc70 /src
parent6a96abeb05a35a64b01154176d2c1d6a8622d3f3 (diff)
downloadscintilla-mirror-a63766d101df9ce02cef81ada9f8216dd4e008f0.tar.gz
Prefer member intializers.
Diffstat (limited to 'src')
-rw-r--r--src/Document.cxx36
1 files changed, 18 insertions, 18 deletions
diff --git a/src/Document.cxx b/src/Document.cxx
index 319cc37e1..4b1f76a2a 100644
--- a/src/Document.cxx
+++ b/src/Document.cxx
@@ -144,28 +144,28 @@ CharacterExtracted::CharacterExtracted(const unsigned char *charBytes, size_t wi
}
Document::Document(DocumentOption options) :
+ refCount(0),
cb(!FlagSet(options, DocumentOption::StylesNone), FlagSet(options, DocumentOption::TextLarge)),
- durationStyleOneByte(0.000001, 0.0000001, 0.00001) {
- refCount = 0;
+ endStyled(0),
+ styleClock(0),
+ enteredModification(0),
+ enteredStyling(0),
+ enteredReadOnlyCount(0),
+ insertionSet(false),
#ifdef _WIN32
- eolMode = EndOfLine::CrLf;
+ eolMode(EndOfLine::CrLf),
#else
- eolMode = EndOfLine::Lf;
+ eolMode(EndOfLine::Lf),
#endif
- dbcsCodePage = CpUtf8;
- lineEndBitSet = LineEndType::Default;
- endStyled = 0;
- styleClock = 0;
- enteredModification = 0;
- enteredStyling = 0;
- enteredReadOnlyCount = 0;
- insertionSet = false;
- tabInChars = 8;
- indentInChars = 0;
- actualIndentInChars = 8;
- useTabs = true;
- tabIndents = true;
- backspaceUnindents = false;
+ dbcsCodePage(CpUtf8),
+ lineEndBitSet(LineEndType::Default),
+ tabInChars(8),
+ indentInChars(0),
+ actualIndentInChars(8),
+ useTabs(true),
+ tabIndents(true),
+ backspaceUnindents(false),
+ durationStyleOneByte(0.000001, 0.0000001, 0.00001) {
perLineData[ldMarkers] = std::make_unique<LineMarkers>();
perLineData[ldLevels] = std::make_unique<LineLevels>();