Fix something bad

This commit is contained in:
Robert Schulze 2024-04-03 20:10:18 +00:00
parent 9626506585
commit d905b83369
No known key found for this signature in database
GPG Key ID: 26703B55FB13728A
2 changed files with 3 additions and 3 deletions

View File

@ -412,7 +412,8 @@ void FlatDictionary::blockToAttributes(const Block & block)
{ {
const auto keys_column = block.safeGetByPosition(0).column; const auto keys_column = block.safeGetByPosition(0).column;
DictionaryKeysExtractor<DictionaryKeyType::Simple> keys_extractor({ keys_column }, DictionaryKeysArenaHolder<DictionaryKeyType::Simple>::getComplexKeyArena()); DictionaryKeysArenaHolder<DictionaryKeyType::Simple> arena_holder;
DictionaryKeysExtractor<DictionaryKeyType::Simple> keys_extractor({ keys_column }, arena_holder.getComplexKeyArena()); /// NOLINT(readability-static-accessed-through-instance)
size_t keys_size = keys_extractor.getKeysSize(); size_t keys_size = keys_extractor.getKeysSize();
static constexpr size_t key_offset = 1; static constexpr size_t key_offset = 1;

View File

@ -70,8 +70,7 @@ namespace
const char * src_pos = src; const char * src_pos = src;
const char * src_end = src + src_size; const char * src_end = src + src_size;
char * dst_pos = dst; char * dst_pos = dst;
// perfect hashmap to lookup html character references
HTMLCharacterHash hash;
// to hold char seq for lookup, reuse it // to hold char seq for lookup, reuse it
std::vector<char> seq; std::vector<char> seq;
while (true) while (true)