diff --git a/src/V3String.cpp b/src/V3String.cpp index 5bf79a99a..fcb3ebd38 100644 --- a/src/V3String.cpp +++ b/src/V3String.cpp @@ -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, ""); } }