aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/ViewStyle.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2021-03-19 10:40:48 +1100
committerNeil <nyamatongwe@gmail.com>2021-03-19 10:40:48 +1100
commit25aca885085525118aec6fee7c1ff49442d90582 (patch)
tree8bcc546855b4f80a92bd9b7f9912c5b907310c26 /src/ViewStyle.cxx
parent4c086ac7bebe13bcd2146f4e2cebc40510a7223c (diff)
downloadscintilla-mirror-25aca885085525118aec6fee7c1ff49442d90582.tar.gz
Switch enum to enum class.
Diffstat (limited to 'src/ViewStyle.cxx')
-rw-r--r--src/ViewStyle.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/ViewStyle.cxx b/src/ViewStyle.cxx
index e30e1fd18..d1f866906 100644
--- a/src/ViewStyle.cxx
+++ b/src/ViewStyle.cxx
@@ -337,7 +337,7 @@ void ViewStyle::Refresh(Surface &surface, int tabInChars) {
[](const Style &style) noexcept { return style.IsProtected(); });
someStylesForceCase = std::any_of(styles.cbegin(), styles.cend(),
- [](const Style &style) noexcept { return style.caseForce != Style::caseMixed; });
+ [](const Style &style) noexcept { return style.caseForce != Style::CaseForce::mixed; });
aveCharWidth = styles[STYLE_DEFAULT].aveCharWidth;
spaceWidth = styles[STYLE_DEFAULT].spaceWidth;
@@ -378,7 +378,7 @@ void ViewStyle::ResetDefaultStyle() {
ColourDesired(0xff,0xff,0xff),
Platform::DefaultFontSize() * SC_FONT_SIZE_MULTIPLIER, fontNames.Save(Platform::DefaultFont()),
SC_CHARSET_DEFAULT,
- SC_WEIGHT_NORMAL, false, false, false, Style::caseMixed, true, true, false);
+ SC_WEIGHT_NORMAL, false, false, false, Style::CaseForce::mixed, true, true, false);
}
void ViewStyle::ClearStyles() {