Skip to content

Commit

Permalink
use constexpr for kDawgMagicNumber
Browse files Browse the repository at this point in the history
  • Loading branch information
zdenop committed Dec 31, 2024
1 parent 08f531a commit 57769d9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/dict/dawg.h
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ static const char kWildcard[] = "*";
class TESS_API Dawg {
public:
/// Magic number to determine endianness when reading the Dawg from file.
static const int16_t kDawgMagicNumber = 42;
static constexpr int16_t kDawgMagicNumber = 42;
/// A special unichar id that indicates that any appropriate pattern
/// (e.g.dictionary word, 0-9 digit, etc) can be inserted instead
/// Used for expressing patterns in punctuation and number Dawgs.
Expand Down

0 comments on commit 57769d9

Please sign in to comment.