clang-tidy fix. No functional change.

This commit is contained in:
Wilson Snyder 2020-11-15 17:23:02 -05:00
parent f4ef4ad9f3
commit b68038a73f

View File

@ -487,10 +487,10 @@ void VSpellCheck::selfTestSuggestOne(bool matches, const string& c, const string
speller.pushCandidate(c);
string got = speller.bestCandidateInfo(goal, gdist /*ref*/);
if (matches) {
UASSERT_SELFTEST(string, got, c);
UASSERT_SELFTEST(const string&, got, c);
UASSERT_SELFTEST(EditDistance, gdist, dist);
} else {
UASSERT_SELFTEST(string, got, "");
UASSERT_SELFTEST(const string&, got, "");
}
}