Skip to content

Commit e2191a2

Browse files
committed
static constexpr
1 parent 9ff9878 commit e2191a2

File tree

1 file changed

+12
-12
lines changed

1 file changed

+12
-12
lines changed

PhotoshopAPI/src/PhotoshopFile/LayerAndMaskInformation.h

+12-12
Original file line numberDiff line numberDiff line change
@@ -109,23 +109,23 @@ namespace LayerRecords
109109
private:
110110
// Masks to perform bitwise & operations with to check if certain flags exist
111111
// Note: we skip bit 2 here as its marked obsolete and there is only 5 total options
112-
constexpr uint8_t m_PositionRelativeToLayerMask = 1u << 0;
113-
constexpr uint8_t m_DisabledMask = 1u << 1;
114-
constexpr uint8_t m_IsVectorMask = 1u << 3;
115-
constexpr uint8_t m_HasMaskParamsMask = 1u << 4;
112+
static constexpr uint8_t m_PositionRelativeToLayerMask = 1u << 0;
113+
static constexpr uint8_t m_DisabledMask = 1u << 1;
114+
static constexpr uint8_t m_IsVectorMask = 1u << 3;
115+
static constexpr uint8_t m_HasMaskParamsMask = 1u << 4;
116116

117117
// Unknown bits of the flags which do sometimes get written and affect the look of the document
118118
// mostly for roundtripping
119-
constexpr uint8_t m_unknownBit2Mask = 1u << 5;
120-
constexpr uint8_t m_unknownBit5Mask = 1u << 5;
121-
constexpr uint8_t m_unknownBit6Mask = 1u << 6;
122-
constexpr uint8_t m_unknownBit7Mask = 1u << 7;
119+
static constexpr uint8_t m_unknownBit2Mask = 1u << 5;
120+
static constexpr uint8_t m_unknownBit5Mask = 1u << 5;
121+
static constexpr uint8_t m_unknownBit6Mask = 1u << 6;
122+
static constexpr uint8_t m_unknownBit7Mask = 1u << 7;
123123

124124
// Mask parameter bitmasks to bitwise & with
125-
constexpr uint8_t m_UserMaskDensityMask = 1u << 0;
126-
constexpr uint8_t m_UserMaskFeatherMask = 1u << 1;
127-
constexpr uint8_t m_VectorMaskDensityMask = 1u << 2;
128-
constexpr uint8_t m_VectorMaskFeatherMask = 1u << 3;
125+
static constexpr uint8_t m_UserMaskDensityMask = 1u << 0;
126+
static constexpr uint8_t m_UserMaskFeatherMask = 1u << 1;
127+
static constexpr uint8_t m_VectorMaskDensityMask = 1u << 2;
128+
static constexpr uint8_t m_VectorMaskFeatherMask = 1u << 3;
129129
};
130130

131131

0 commit comments

Comments
 (0)