D18638: Avoid using trimmed method

Stefan BrĂ¼ns noreply at phabricator.kde.org
Mon Feb 4 21:59:10 GMT 2019


bruns added inline comments.

INLINE COMMENTS

> highlighter.cpp:311
>  {
> -    if (text.trimmed().isEmpty() || !d->active || !d->spellCheckerFound) {
> +    if (!hasNotEmptyText(text) || !d->active || !d->spellCheckerFound) {
>          return;

if (std::all_of(text.cbegin(), text.cend(),
      [](QString::const_iterator it) { return it->isSpace(); })
  {
      return;
  }

REPOSITORY
  R246 Sonnet

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

To: mlaurent, dfaure
Cc: bruns, apol, kde-frameworks-devel, michaelh, ngraham
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20190204/bb655032/attachment.html>


More information about the Kde-frameworks-devel mailing list