Internals: Mark some functions of VSpellCheck 'const'. No functional change is intended. (#2817)

This commit is contained in:
Yutetsu TAKATSUKASA
2021-03-04 22:08:44 +09:00
committed by GitHub
parent ed2f8dc097
commit 97b869e5d8
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -460,7 +460,7 @@ VSpellCheck::EditDistance VSpellCheck::cutoffDistance(size_t goal_len, size_t ca
return (max_length + 2) / 3;
}
string VSpellCheck::bestCandidateInfo(const string& goal, EditDistance& distancer) {
string VSpellCheck::bestCandidateInfo(const string& goal, EditDistance& distancer) const {
string bestCandidate;
size_t gLen = goal.length();
distancer = LENGTH_LIMIT * 10;