From eba52ebdad53ab657982cdf4e148599e1349c513 Mon Sep 17 00:00:00 2001 From: levlam Date: Wed, 26 Dec 2018 21:54:35 +0300 Subject: [PATCH] Return back creation of LanguageDatabase. GitOrigin-RevId: cff2adc52e11c814f84a7b8075c2e558a5128a3c --- td/telegram/LanguagePackManager.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/td/telegram/LanguagePackManager.cpp b/td/telegram/LanguagePackManager.cpp index 5f225cfe5..9854e05b3 100644 --- a/td/telegram/LanguagePackManager.cpp +++ b/td/telegram/LanguagePackManager.cpp @@ -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()).first; it->second->path_ = std::move(path); it->second->database_ = std::move(database); return it->second.get();