1 From 9a0baf202f67291eaf482f1bcf654e21d71943e2 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?Caol=C3=A1n=20McNamara?= <caolanm@redhat.com>
3 Date: Mon, 23 Jan 2017 11:43:53 +0000
4 Subject: [PATCH] cppcheck: redundant c_str
7 src/hunspell/suggestmgr.cxx | 4 ++--
8 1 file changed, 2 insertions(+), 2 deletions(-)
10 diff --git a/src/hunspell/suggestmgr.cxx b/src/hunspell/suggestmgr.cxx
11 index b998341..8d46dd6 100644
12 --- a/src/hunspell/suggestmgr.cxx
13 +++ b/src/hunspell/suggestmgr.cxx
14 @@ -1107,7 +1107,7 @@ void SuggestMgr::ngsuggest(std::vector<std::string>& wlst,
18 - u8_u16(w_f, f.c_str());
20 sc2 = ngram(3, w_word, w_f, NGRAM_LONGER_WORSE + low) +
21 leftcommonsubstring(w_word, w_f);
23 @@ -1132,7 +1132,7 @@ void SuggestMgr::ngsuggest(std::vector<std::string>& wlst,
24 std::string target2 = phonet(candidate, *ph);
27 - u8_u16(w_target2, target2.c_str());
28 + u8_u16(w_target2, target2);
29 scphon = 2 * ngram(3, w_target, w_target2,