D26346: Sonnet: Fix returning from GuessLanguagePrivate::guessFromTrigrams

Michel Ludwig noreply at phabricator.kde.org
Wed Jan 1 17:46:22 GMT 2020


mludwig created this revision.
mludwig added a reviewer: Frameworks.
Herald added a project: Frameworks.
Herald added a subscriber: kde-frameworks-devel.
mludwig requested review of this revision.

REVISION SUMMARY
  The documentation states that "Default is returning best guess without caring about confidence - exactly as after call to setLimits(1,0)."
  
  However, for the default value m_minConfidence = 0, GuessLanguagePrivate::guessFromTrigrams always returns an empty list.
  
  This patch is an attempt at fixing that.

REPOSITORY
  R246 Sonnet

REVISION DETAIL
  https://phabricator.kde.org/D26346

AFFECTED FILES
  src/core/guesslanguage.cpp
  src/core/guesslanguage.h

To: mludwig, #frameworks
Cc: kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20200101/7d95b243/attachment.html>


More information about the Kde-frameworks-devel mailing list