waqar added inline comments.

INLINE COMMENTS

> guesslanguage.cpp:745
>  
> -    while (it.hasNext() && counter < m_maxItems && confidence < 
> m_minConfidence) {
> +    while (it.hasNext() && counter < m_maxItems && (m_minConfidence == 0.0 
> || confidence < m_minConfidence)) {
>          it.next();

I wasn't able to see its usefulness directly, I had to change  
`MIN_RELIABILITY` to `0.0` (in LanguageFilter) to see its effects.

But how about just doing `confidence <= m_minConfidence`?

REPOSITORY
  R246 Sonnet

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

To: mludwig, #frameworks
Cc: waqar, kde-frameworks-devel, LeGast00n, GB_2, michaelh, ngraham, bruns

Reply via email to