Move to constexpr.
This commit is contained in:
parent
f15ac4091f
commit
a8a400da5d
@ -1301,14 +1301,14 @@ class DecodeDataBuilder {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private:
|
private:
|
||||||
static const uint8 kAddUnderscore = 0x80;
|
static constexpr uint8 kAddUnderscore = 0x80;
|
||||||
|
|
||||||
static const uint8 kOpAsIs = 0x00;
|
static constexpr uint8 kOpAsIs = 0x00;
|
||||||
static const uint8 kOpFirstUpper = 0x40;
|
static constexpr uint8 kOpFirstUpper = 0x40;
|
||||||
static const uint8 kOpFirstLower = 0x20;
|
static constexpr uint8 kOpFirstLower = 0x20;
|
||||||
static const uint8 kOpAllUpper = 0x60;
|
static constexpr uint8 kOpAllUpper = 0x60;
|
||||||
|
|
||||||
static const int kMaxSegmentLen = 0x1f;
|
static constexpr int kMaxSegmentLen = 0x1f;
|
||||||
|
|
||||||
void AddChar(const char desired) {
|
void AddChar(const char desired) {
|
||||||
++segment_len_;
|
++segment_len_;
|
||||||
|
Loading…
Reference in New Issue
Block a user