From d385d1b17baaf91cab5b1208f4ff433fed9de398 Mon Sep 17 00:00:00 2001 From: Neil Date: Tue, 27 Feb 2018 16:11:47 +1100 Subject: Backport: Use 'const'. Backport of changeset 6463:6d6db2016d7c. --- 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