aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/PositionCache.h
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2020-07-16 09:27:55 +1000
committerNeil <nyamatongwe@gmail.com>2020-07-16 09:27:55 +1000
commit97782cf42d51d2834a9a92f460a1cb7d483f09d7 (patch)
tree7612f060f90404a275dde3aa13b04ced62191bd5 /src/PositionCache.h
parent86fc59c515f92eb9407e5f981eab1f4d04a6d97e (diff)
downloadscintilla-mirror-97782cf42d51d2834a9a92f460a1cb7d483f09d7.tar.gz
Backport: Rename validLevel to ValidLevel and make an enum class.
Backport of changeset 8412:999c4c848b8f.
Diffstat (limited to 'src/PositionCache.h')
-rw-r--r--src/PositionCache.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/PositionCache.h b/src/PositionCache.h
index 9ff3e1239..9647255d6 100644
--- a/src/PositionCache.h
+++ b/src/PositionCache.h
@@ -60,7 +60,7 @@ public:
int maxLineLength;
int numCharsInLine;
int numCharsBeforeEOL;
- enum validLevel { llInvalid, llCheckTextAndStyle, llPositions, llLines } validity;
+ enum class ValidLevel { invalid, checkTextAndStyle, positions, lines } validity;
int xHighlightGuide;
bool highlightColumn;
bool containsCaret;
@@ -87,7 +87,7 @@ public:
virtual ~LineLayout();
void Resize(int maxLineLength_);
void Free() noexcept;
- void Invalidate(validLevel validity_) noexcept;
+ void Invalidate(ValidLevel validity_) noexcept;
int LineStart(int line) const noexcept;
int LineLength(int line) const noexcept;
enum class Scope { visibleOnly, includeEnd };
@@ -129,7 +129,7 @@ public:
llcPage=SC_CACHE_PAGE,
llcDocument=SC_CACHE_DOCUMENT
};
- void Invalidate(LineLayout::validLevel validity_) noexcept;
+ void Invalidate(LineLayout::ValidLevel validity_) noexcept;
void SetLevel(int level_) noexcept;
int GetLevel() const noexcept { return level; }
LineLayout *Retrieve(Sci::Line lineNumber, Sci::Line lineCaret, int maxChars, int styleClock_,