2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-06 09:26:18 +00:00

Remove LangKey.

This commit is contained in:
John Preston
2019-06-19 17:42:16 +02:00
parent 87fc066e67
commit edcd09c29f
16 changed files with 97 additions and 100 deletions

View File

@@ -16,7 +16,7 @@ constexpr auto kLangFileLimit = 1024 * 1024;
} // namespace
FileParser::FileParser(const QString &file, const std::set<LangKey> &request)
FileParser::FileParser(const QString &file, const std::set<ushort> &request)
: _content(base::parse::stripComments(ReadFile(file, file)))
, _request(request) {
parse();
@@ -90,7 +90,7 @@ bool FileParser::readKeyValue(const char *&from, const char *end) {
}
auto skipping = false;
auto keyIndex = kLangKeysCount;
auto keyIndex = kKeysCount;
if (!_callback) {
keyIndex = GetKeyIndex(key);
skipping = (_request.find(keyIndex) == _request.end());