From b68038a73f4cc2a2b75ca69dcbdde4b4b680c745 Mon Sep 17 00:00:00 2001 From: Wilson Snyder Date: Sun, 15 Nov 2020 17:23:02 -0500 Subject: [PATCH] clang-tidy fix. No functional change. --- src/V3String.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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, ""); } }