aboutsummaryrefslogtreecommitdiff
path: root/src/mnemonics/japanese.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/japanese.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/japanese.h')
-rw-r--r--src/mnemonics/japanese.h11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/mnemonics/japanese.h b/src/mnemonics/japanese.h
index b437ae2af..09d05d132 100644
--- a/src/mnemonics/japanese.h
+++ b/src/mnemonics/japanese.h
@@ -51,9 +51,7 @@ namespace Language
class Japanese: public Base
{
public:
- Japanese()
- {
- word_list = new std::vector<std::string>({
+ Japanese(): Base("Japanese", std::vector<std::string>({
"あいこくしん",
"あいさつ",
"あいだ",
@@ -1680,11 +1678,8 @@ namespace Language
"ひさん",
"びじゅつかん",
"ひしょ"
- });
- unique_prefix_length = 3;
- word_map = new std::unordered_map<std::string, uint32_t>;
- trimmed_word_map = new std::unordered_map<std::string, uint32_t>;
- language_name = "Japanese";
+ }), 3)
+ {
populate_maps();
}
};