aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
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
parentdfff8da4e2b017d29d870c9b4f642a5c1ce3147c (diff)
downloadscintilla-mirror-71cba42205ad92d1d946caead382a326008ae110.tar.gz
Use bool literals true and false instead of 1 and 0.
Diffstat (limited to 'src')
-rw-r--r--src/Editor.cxx6
-rw-r--r--src/PerLine.cxx2
-rw-r--r--src/PositionCache.cxx2
3 files changed, 5 insertions, 5 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);
}
}
diff --git a/src/PerLine.cxx b/src/PerLine.cxx
index f26b48b77..41e767ab7 100644
--- a/src/PerLine.cxx
+++ b/src/PerLine.cxx
@@ -385,7 +385,7 @@ bool LineAnnotation::MultipleStyles(Sci::Line line) const {
if (annotations.Length() && (line >= 0) && (line < annotations.Length()) && annotations[line])
return reinterpret_cast<AnnotationHeader *>(annotations[line])->style == IndividualStyles;
else
- return 0;
+ return false;
}
int LineAnnotation::Style(Sci::Line line) const {
diff --git a/src/PositionCache.cxx b/src/PositionCache.cxx
index 6df915b8b..fff1d58a6 100644
--- a/src/PositionCache.cxx
+++ b/src/PositionCache.cxx
@@ -55,7 +55,7 @@ LineLayout::LineLayout(int maxLineLength_) :
numCharsBeforeEOL(0),
validity(llInvalid),
xHighlightGuide(0),
- highlightColumn(0),
+ highlightColumn(false),
containsCaret(false),
edgeColumn(0),
chars(0),