Turn enum : char into enum : signed char if it contains negative values

This commit is contained in:
Joachim Schmitz 2022-01-04 17:03:55 +01:00 committed by Igor Korsukov
parent d3e209f20f
commit 45e26509c0
3 changed files with 3 additions and 3 deletions

View file

@ -46,7 +46,7 @@ enum class FrameType : char {
// VerticalAlignment
//---------------------------------------------------------
enum class VerticalAlignment : char {
enum class VerticalAlignment : signed char {
AlignUndefined = -1, AlignNormal, AlignSuperScript, AlignSubScript
};

View file

@ -470,7 +470,7 @@ constexpr bool operator&(const SegmentType t1, const SegmentType t2)
// FontStyle
//---------------------------------------------------------
enum class FontStyle : char {
enum class FontStyle : signed char {
Undefined = -1,
Normal = 0,
Bold = 1 << 0,

View file

@ -409,7 +409,7 @@ enum class HookType : char {
};
// P_TYPE::KEY_MODE
enum class KeyMode : char {
enum class KeyMode : signed char {
UNKNOWN = -1,
NONE,
MAJOR,