From 4dc9faf1df48fe1191788ae5feed47661a75f4c0 Mon Sep 17 00:00:00 2001 From: tastytea Date: Sat, 31 Oct 2020 13:30:40 +0100 Subject: [PATCH] Make reference in ranged for const. --- src/lib/uri.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/uri.cpp b/src/lib/uri.cpp index 02658de..b88f9ce 100644 --- a/src/lib/uri.cpp +++ b/src/lib/uri.cpp @@ -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);