From 0cba2a2af6af8d31ee89abbb4352fac40bd106e1 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 27 Feb 2018 16:11:47 +1100 Subject: Use 'const'. --- lexlib/PropSetSimple.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lexlib/PropSetSimple.cxx') diff --git a/lexlib/PropSetSimple.cxx b/lexlib/PropSetSimple.cxx index 715009a5b..e8f0364fa 100644 --- a/lexlib/PropSetSimple.cxx +++ b/lexlib/PropSetSimple.cxx @@ -100,7 +100,7 @@ struct VarChain { static int ExpandAllInPlace(const PropSetSimple &props, std::string &withVars, int maxExpands, const VarChain &blankVars) { size_t varStart = withVars.find("$("); while ((varStart != std::string::npos) && (maxExpands > 0)) { - size_t varEnd = withVars.find(")", varStart+2); + const size_t varEnd = withVars.find(")", varStart+2); if (varEnd == std::string::npos) { break; } -- cgit v1.2.3