aboutsummaryrefslogtreecommitdiff
path: root/include/stdalgo.h
diff options
context:
space:
mode:
authorGravatar Sadie Powell2023-01-10 23:02:45 +0000
committerGravatar Sadie Powell2023-01-10 23:30:34 +0000
commitb2d86bb8a1bc965ad72d00ba5ef98d0e4bbfb155 (patch)
tree3319a65d5472ec30780560003264fa815dbfd711 /include/stdalgo.h
parentFix some unnecessary string copies. (diff)
Qualify auto correctly in all cases.
Diffstat (limited to 'include/stdalgo.h')
-rw-r--r--include/stdalgo.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/stdalgo.h b/include/stdalgo.h
index 609ef2b2d..b19b736ba 100644
--- a/include/stdalgo.h
+++ b/include/stdalgo.h
@@ -212,7 +212,7 @@ namespace stdalgo
template <char from, char to, char esc>
inline void escape(const std::string& str, std::string& out)
{
- for (const auto& c : str)
+ for (const auto c : str)
{
if (c == esc)
out.append(2, esc);