aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Editor.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2017-04-15 14:28:09 +1000
committerNeil <nyamatongwe@gmail.com>2017-04-15 14:28:09 +1000
commit71cba42205ad92d1d946caead382a326008ae110 (patch)
tree6c43fd4b26d50c12e1ff58ddd33449f5b74c0fe4 /src/Editor.cxx
parentdfff8da4e2b017d29d870c9b4f642a5c1ce3147c (diff)
downloadscintilla-mirror-71cba42205ad92d1d946caead382a326008ae110.tar.gz
Use bool literals true and false instead of 1 and 0.
Diffstat (limited to 'src/Editor.cxx')
-rw-r--r--src/Editor.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Editor.cxx b/src/Editor.cxx
index 2c7c2e5a2..81f3c1893 100644
--- a/src/Editor.cxx
+++ b/src/Editor.cxx
@@ -5331,7 +5331,7 @@ void Editor::FoldLine(Sci::Line line, int action) {
if (action == SC_FOLDACTION_CONTRACT) {
const Sci::Line lineMaxSubord = pdoc->GetLastChild(line);
if (lineMaxSubord > line) {
- cs.SetExpanded(line, 0);
+ cs.SetExpanded(line, false);
cs.SetVisible(line + 1, lineMaxSubord, false);
const Sci::Line lineCurrent = pdoc->LineFromPosition(sel.MainCaret());
@@ -5346,7 +5346,7 @@ void Editor::FoldLine(Sci::Line line, int action) {
EnsureLineVisible(line, false);
GoToLine(line);
}
- cs.SetExpanded(line, 1);
+ cs.SetExpanded(line, true);
ExpandLine(line);
}
@@ -5419,7 +5419,7 @@ void Editor::EnsureLineVisible(Sci::Line lineDoc, bool enforcePolicy) {
if (lineDoc != lineParent)
EnsureLineVisible(lineParent, enforcePolicy);
if (!cs.GetExpanded(lineParent)) {
- cs.SetExpanded(lineParent, 1);
+ cs.SetExpanded(lineParent, true);
ExpandLine(lineParent);
}
}