aboutsummaryrefslogtreecommitdiffhomepage
path: root/lexlib/PropSetSimple.cxx
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2018-02-27 16:11:47 +1100
committerNeil <nyamatongwe@gmail.com>2018-02-27 16:11:47 +1100
commitd385d1b17baaf91cab5b1208f4ff433fed9de398 (patch)
tree8773008ee482e66b76ecd025215faaa3573d4138 /lexlib/PropSetSimple.cxx
parentfd0f2ad6df90dd7c8bf2cbdd781a6b4b3ed88f9b (diff)
downloadscintilla-mirror-d385d1b17baaf91cab5b1208f4ff433fed9de398.tar.gz
Backport: Use 'const'.
Backport of changeset 6463:6d6db2016d7c.
Diffstat (limited to 'lexlib/PropSetSimple.cxx')
-rw-r--r--lexlib/PropSetSimple.cxx2
1 files changed, 1 insertions, 1 deletions
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;
}