aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil Hodgson <nyamatongwe@gmail.com>2015-09-26 10:47:50 +1000
committerNeil Hodgson <nyamatongwe@gmail.com>2015-09-26 10:47:50 +1000
commit44e2e7c3167e98c82e28f4d077d5f963f2ea446a (patch)
treece2f92b1bc5a5d63744614d042ec4a404ca8c7f0
parent3491002fbd32adbec743cf5ac4400fc463eab5f3 (diff)
downloadscintilla-mirror-44e2e7c3167e98c82e28f4d077d5f963f2ea446a.tar.gz
Add parentheses to fix warning from Clang.
-rw-r--r--src/ViewStyle.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index 9416ddcc6..ae68d8bff 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -513,8 +513,8 @@ bool ViewStyle::WhitespaceBackgroundDrawn() const {
}
bool ViewStyle::WhiteSpaceVisible(bool inIndent) const {
- return !inIndent && viewWhitespace == wsVisibleAfterIndent ||
- inIndent && viewWhitespace == wsVisibleOnlyInIndent ||
+ return (!inIndent && viewWhitespace == wsVisibleAfterIndent) ||
+ (inIndent && viewWhitespace == wsVisibleOnlyInIndent) ||
viewWhitespace == wsVisibleAlways;
}