Return back creation of LanguageDatabase.
GitOrigin-RevId: cff2adc52e11c814f84a7b8075c2e558a5128a3c
This commit is contained in:
parent
d9d45ef303
commit
eba52ebdad
@ -162,7 +162,7 @@ LanguagePackManager::LanguageDatabase *LanguagePackManager::add_language_databas
|
||||
database = r_database.move_as_ok();
|
||||
}
|
||||
|
||||
it = language_databases_.emplace(path, nullptr).first;
|
||||
it = language_databases_.emplace(path, make_unique<LanguageDatabase>()).first;
|
||||
it->second->path_ = std::move(path);
|
||||
it->second->database_ = std::move(database);
|
||||
return it->second.get();
|
||||
|
Loading…
Reference in New Issue
Block a user