Encapsulates int[N] in a class to avoid compilation issues

Depending on the compiler, there may be a compilation issue with the
usage of std::unique_ptr<int[]>. Therefore encapsulating it inside a
regular class.
This commit is contained in:
Felipe Zimmerle
2018-11-01 10:21:41 -03:00
parent e3b9f7c913
commit 18cdffdbca
3 changed files with 24 additions and 11 deletions

View File

@@ -109,7 +109,7 @@ int UrlDecodeUni::inplace(unsigned char *input, uint64_t input_len,
if (Code >= 0 && Code <= 65535) {
Rules *r = t->m_rules;
hmap = r->m_unicodeMapTable.m_unicodeMapTable[Code];
hmap = r->m_unicodeMapTable.m_unicodeMapTable->at(Code);
}
}