Add missing const in StringUtils.h

This commit is contained in:
Charles Ruan 2020-09-12 23:13:52 +08:00
parent ae0c7a31f8
commit 734d18cb35
1 changed files with 1 additions and 1 deletions

View File

@ -36,7 +36,7 @@ namespace antlrcpp {
thread_local UTF32Converter converter;
#if defined(_MSC_VER) && _MSC_VER >= 1900 && _MSC_VER < 2000
auto p = reinterpret_cast<const int32_t *>(data.data());
const auto p = reinterpret_cast<const int32_t *>(data.data());
return converter.to_bytes(p, p + data.size());
#else
return converter.to_bytes(data);