mirror of
https://github.com/verilator/verilator.git
synced 2026-10-07 10:33:13 +02:00
Internals: Mark some functions of VSpellCheck 'const'. No functional change is intended. (#2817)
This commit is contained in:
+1
-1
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user