diff options
author | Neil <nyamatongwe@gmail.com> | 2024-12-15 09:16:00 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2024-12-15 09:16:00 +1100 |
commit | 3ded20d4863720aa5562f35d05699a58d7642640 (patch) | |
tree | 716f03e6d82b117304c601ddac9a12a8cff81c20 | |
parent | 815e3f5a79e3ad01ef3712ea01d2c49e6ee352a1 (diff) | |
download | scintilla-mirror-3ded20d4863720aa5562f35d05699a58d7642640.tar.gz |
Feature [feature-requests:#1537]. Use const where possible.
-rw-r--r-- | src/AutoComplete.cxx | 2 |
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)) |