aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorNeil <nyamatongwe@gmail.com>2024-12-15 09:16:00 +1100
committerNeil <nyamatongwe@gmail.com>2024-12-15 09:16:00 +1100
commit3ded20d4863720aa5562f35d05699a58d7642640 (patch)
tree716f03e6d82b117304c601ddac9a12a8cff81c20
parent815e3f5a79e3ad01ef3712ea01d2c49e6ee352a1 (diff)
downloadscintilla-mirror-3ded20d4863720aa5562f35d05699a58d7642640.tar.gz
Feature [feature-requests:#1537]. Use const where possible.
-rw-r--r--src/AutoComplete.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx
index caf396ba2..2487d3042 100644
--- a/src/AutoComplete.cxx
+++ b/src/AutoComplete.cxx
@@ -299,7 +299,7 @@ void AutoComplete::Select(const char *word) {
if (autoSort == Ordering::Custom) {
// Check for a logically earlier match
for (int i = location + 1; i <= end; ++i) {
- std::string item = lb->GetValue(sortMatrix[i]);
+ const std::string item = lb->GetValue(sortMatrix[i]);
if (CompareNCaseInsensitive(word, item.c_str(), lenWord))
break;
if (sortMatrix[i] < sortMatrix[location] && !strncmp(word, item.c_str(), lenWord))