diff options
Diffstat (limited to 'chrome/third_party/hunspell')
-rw-r--r-- | chrome/third_party/hunspell/google/bdict.h | 4 | ||||
-rw-r--r-- | chrome/third_party/hunspell/google/bdict_writer.cc | 4 |
2 files changed, 6 insertions, 2 deletions
diff --git a/chrome/third_party/hunspell/google/bdict.h b/chrome/third_party/hunspell/google/bdict.h index b96a2e4..3157616 100644 --- a/chrome/third_party/hunspell/google/bdict.h +++ b/chrome/third_party/hunspell/google/bdict.h @@ -98,6 +98,10 @@ class BDict { public: // File header. enum { SIGNATURE = 0x63694442 }; + enum { + MAJOR_VERSION = 1, + MINOR_VERSION = 1 + }; struct Header { uint32 signature; diff --git a/chrome/third_party/hunspell/google/bdict_writer.cc b/chrome/third_party/hunspell/google/bdict_writer.cc index 67be677..fcb060d 100644 --- a/chrome/third_party/hunspell/google/bdict_writer.cc +++ b/chrome/third_party/hunspell/google/bdict_writer.cc @@ -451,8 +451,8 @@ std::string BDictWriter::GetBDict() const { hunspell::BDict::Header* header = reinterpret_cast<hunspell::BDict::Header*>(&ret[0]); header->signature = hunspell::BDict::SIGNATURE; - header->major_version = 1; - header->minor_version = 0; + header->major_version = hunspell::BDict::MAJOR_VERSION; + header->minor_version = hunspell::BDict::MINOR_VERSION; header->aff_offset = static_cast<uint32>(aff_offset); header->dic_offset = static_cast<uint32>(dic_offset); |