From b7b1e7a33569236400de14981f6629c4f48421c1 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 5 Apr 2021 16:54:39 +1000 Subject: Change IndentView, WhiteSpaceVisibility, and TabDrawMode to enum class. --- src/ViewStyle.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'src/ViewStyle.cxx') diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx index 6aa459895..f553f4205 100644 --- a/src/ViewStyle.cxx +++ b/src/ViewStyle.cxx @@ -256,10 +256,10 @@ void ViewStyle::Init(size_t stylesSize_) { CalculateMarginWidthAndMask(); textStart = marginInside ? fixedColumnWidth : leftMarginWidth; zoomLevel = 0; - viewWhitespace = wsInvisible; - tabDrawMode = tdLongArrow; + viewWhitespace = WhiteSpace::invisible; + tabDrawMode = TabDrawMode::longArrow; whitespaceSize = 1; - viewIndentationGuides = ivNone; + viewIndentationGuides = IndentView::none; viewEOL = false; extraFontFlag = 0; extraAscent = 0; @@ -491,13 +491,13 @@ bool ViewStyle::SelectionBackgroundDrawn() const noexcept { } bool ViewStyle::WhitespaceBackgroundDrawn() const noexcept { - return (viewWhitespace != wsInvisible) && (whitespaceColours.back.isSet); + return (viewWhitespace != WhiteSpace::invisible) && (whitespaceColours.back.isSet); } bool ViewStyle::WhiteSpaceVisible(bool inIndent) const noexcept { - return (!inIndent && viewWhitespace == wsVisibleAfterIndent) || - (inIndent && viewWhitespace == wsVisibleOnlyInIndent) || - viewWhitespace == wsVisibleAlways; + return (!inIndent && viewWhitespace == WhiteSpace::visibleAfterIndent) || + (inIndent && viewWhitespace == WhiteSpace::visibleOnlyInIndent) || + viewWhitespace == WhiteSpace::visibleAlways; } ColourDesired ViewStyle::WrapColour() const noexcept { -- cgit v1.2.3