aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/Style.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/Style.cxx
parent4c086ac7bebe13bcd2146f4e2cebc40510a7223c (diff)
downloadscintilla-mirror-25aca885085525118aec6fee7c1ff49442d90582.tar.gz
Switch enum to enum class.
Diffstat (limited to 'src/Style.cxx')
-rw-r--r--src/Style.cxx8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Style.cxx b/src/Style.cxx
index fc96cfcfd..83224c736 100644
--- a/src/Style.cxx
+++ b/src/Style.cxx
@@ -61,13 +61,13 @@ void FontMeasurements::ClearMeasurements() noexcept {
Style::Style() : FontSpecification() {
Clear(ColourDesired(0, 0, 0), ColourDesired(0xff, 0xff, 0xff),
Platform::DefaultFontSize() * SC_FONT_SIZE_MULTIPLIER, nullptr, SC_CHARSET_DEFAULT,
- SC_WEIGHT_NORMAL, false, false, false, caseMixed, true, true, false);
+ SC_WEIGHT_NORMAL, false, false, false, CaseForce::mixed, true, true, false);
}
Style::Style(const Style &source) noexcept : FontSpecification(), FontMeasurements() {
Clear(ColourDesired(0, 0, 0), ColourDesired(0xff, 0xff, 0xff),
0, nullptr, 0,
- SC_WEIGHT_NORMAL, false, false, false, caseMixed, true, true, false);
+ SC_WEIGHT_NORMAL, false, false, false, CaseForce::mixed, true, true, false);
fore = source.fore;
back = source.back;
characterSet = source.characterSet;
@@ -91,7 +91,7 @@ Style &Style::operator=(const Style &source) noexcept {
return * this;
Clear(ColourDesired(0, 0, 0), ColourDesired(0xff, 0xff, 0xff),
0, nullptr, SC_CHARSET_DEFAULT,
- SC_WEIGHT_NORMAL, false, false, false, caseMixed, true, true, false);
+ SC_WEIGHT_NORMAL, false, false, false, CaseForce::mixed, true, true, false);
fore = source.fore;
back = source.back;
characterSet = source.characterSet;
@@ -110,7 +110,7 @@ Style &Style::operator=(const Style &source) noexcept {
void Style::Clear(ColourDesired fore_, ColourDesired back_, int size_,
const char *fontName_, int characterSet_,
int weight_, bool italic_, bool eolFilled_,
- bool underline_, ecaseForced caseForce_,
+ bool underline_, CaseForce caseForce_,
bool visible_, bool changeable_, bool hotspot_) noexcept {
fore = fore_;
back = back_;