Skip to content

Commit

Permalink
Use QByteArray::toStdString.
Browse files Browse the repository at this point in the history
  • Loading branch information
john-preston committed Jan 30, 2023
1 parent 46385c3 commit 55ed148
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spellcheck/third_party/language_cld3.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ LanguageId Recognize(QStringView text) {
constexpr auto kMaxLangs = 3;

auto lang_id = NNetLanguageIdentifier(kMinNumBytes, kMaxNumBytes);
const auto string = std::string(text.toUtf8().constData());
const auto string = text.toUtf8().toStdString();
const auto results = lang_id.FindTopNMostFreqLangs(string, kMaxLangs);

auto maxRatio = 0.;
Expand Down

0 comments on commit 55ed148

Please sign in to comment.