Skip to content

Commit

Permalink
Fix the failure of pos_list_ initialization.
Browse files Browse the repository at this point in the history
* `pos_list_` should be used as a member variable.
* Fixed #849

PiperOrigin-RevId: 589013834
  • Loading branch information
hiroyuki-komatsu committed Dec 8, 2023
1 parent d07f9e1 commit fa96948
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/data_manager/pos_list_provider.cc
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ PosListProvider::PosListProvider() {
SerializedStringArray array;
CHECK(array.Init(LoadEmbeddedFile(kPosArray)));

std::vector<std::string> pos_list_(array.size());
pos_list_.reserve(array.size());
for (absl::string_view pos : array) {
if (pos == "名詞") {
pos_list_default_index_ = pos_list_.size();
Expand Down

0 comments on commit fa96948

Please sign in to comment.