Make reference in ranged for const.
continuous-integration/drone/push Build is passing Details

This commit is contained in:
tastytea 2020-10-31 13:30:40 +01:00
parent a198f1323a
commit 4dc9faf1df
Signed by: tastytea
GPG Key ID: CFC39497F1B26E07
1 changed files with 1 additions and 1 deletions

View File

@ -445,7 +445,7 @@ string URI::unescape_html(string html)
{"rang", 0x232A}, {"loz", 0x25CA}, {"spades", 0x2660},
{"clubs", 0x2663}, {"hearts", 0x2665}, {"diams", 0x2666}}};
for (auto &pair : names)
for (const auto &pair : names)
{
const RegEx re('&' + pair.first + ';');
re.subst(html, u8c.to_bytes(pair.second), RegEx::RE_GLOBAL);