aboutsummaryrefslogtreecommitdiff
path: root/src/mnemonics/old_english.h
diff options
context:
space:
mode:
authorRiccardo Spagni <ric@spagni.net>2017-03-25 17:35:52 +0200
committerRiccardo Spagni <ric@spagni.net>2017-03-25 17:35:52 +0200
commitf64a0f2243dff291f277bfd2460ad2474d0b63a0 (patch)
tree45f0d0dec4015c29b531e029b4b4a184a955f5e9 /src/mnemonics/old_english.h
parentMerge pull request #1920 (diff)
parentmnemonics: sanity checks for word lists (diff)
downloadmonero-f64a0f2243dff291f277bfd2460ad2474d0b63a0.tar.xz
Merge pull request #1917
6e679478 mnemonics: sanity checks for word lists (moneromooo-monero) e98f1114 mnemonics: misc cleanup (moneromooo-monero)
Diffstat (limited to 'src/mnemonics/old_english.h')
-rw-r--r--src/mnemonics/old_english.h13
1 files changed, 4 insertions, 9 deletions
diff --git a/src/mnemonics/old_english.h b/src/mnemonics/old_english.h
index 690e46616..21ac95de3 100644
--- a/src/mnemonics/old_english.h
+++ b/src/mnemonics/old_english.h
@@ -51,9 +51,7 @@ namespace Language
class OldEnglish: public Base
{
public:
- OldEnglish()
- {
- word_list = new std::vector<std::string>({
+ OldEnglish(): Base("OldEnglish", std::vector<std::string>({
"like",
"just",
"love",
@@ -1680,12 +1678,9 @@ namespace Language
"unseen",
"weapon",
"weary"
- });
- unique_prefix_length = 4;
- word_map = new std::unordered_map<std::string, uint32_t>;
- trimmed_word_map = new std::unordered_map<std::string, uint32_t>;
- language_name = "OldEnglish";
- populate_maps();
+ }), 4)
+ {
+ populate_maps(ALLOW_DUPLICATE_PREFIXES | ALLOW_SHORT_WORDS);
}
};
}