Return back creation of LanguageDatabase.

GitOrigin-RevId: cff2adc52e11c814f84a7b8075c2e558a5128a3c
This commit is contained in:
levlam 2018-12-26 21:54:35 +03:00
parent d9d45ef303
commit eba52ebdad
1 changed files with 1 additions and 1 deletions

View File

@ -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();