From ae4b1d41a3e763240a5e9f60f76cedab55e1e5e2 Mon Sep 17 00:00:00 2001 From: Neil Date: Thu, 1 Mar 2018 11:03:37 +1100 Subject: Mark variables as const where simple. --- src/AutoComplete.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/AutoComplete.cxx') diff --git a/src/AutoComplete.cxx b/src/AutoComplete.cxx index ac8a27c18..a5aa50afe 100644 --- a/src/AutoComplete.cxx +++ b/src/AutoComplete.cxx @@ -224,7 +224,7 @@ void AutoComplete::Move(int delta) { } void AutoComplete::Select(const char *word) { - size_t lenWord = strlen(word); + const size_t lenWord = strlen(word); int location = -1; int start = 0; // lower bound of the api array block to search int end = lb->Length() - 1; // upper bound of the api array block to search -- cgit v1.2.3