diff options
author | Neil <nyamatongwe@gmail.com> | 2018-02-27 16:11:47 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2018-02-27 16:11:47 +1100 |
commit | 0cba2a2af6af8d31ee89abbb4352fac40bd106e1 (patch) | |
tree | a038e83560fb2957de76bd46b4a483dd0cd7f2f0 | |
parent | 1ba68d0a15f6412fa581845048c5013aee93558a (diff) | |
download | scintilla-mirror-0cba2a2af6af8d31ee89abbb4352fac40bd106e1.tar.gz |
Use 'const'.
-rw-r--r-- | lexlib/PropSetSimple.cxx | 2 |
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; } |