mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-09-06 09:26:18 +00:00
Remove LangKey.
This commit is contained in:
@@ -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());
|
||||
|
Reference in New Issue
Block a user