D26236: Port QRegExp to QRegularExpression (and some QStringRef optimisation)

David Faure noreply at phabricator.kde.org
Thu Dec 26 23:35:37 GMT 2019


dfaure accepted this revision.
dfaure added inline comments.
This revision is now accepted and ready to land.

INLINE COMMENTS

> kshorturifilter.cpp:437
> +        // URLs using Qt's QRegularExpression class. This is hard-coded for now.
>          // TODO: Make configurable at some point...
>          for (const URLHint &hint : qAsConst(m_urlHints)) {

(before I forget: this todo should be removed, `KShortUriFilter::configure()` does exactly that)

> kshorturifilter.h:101
>          URLHint(const QString &r, const QString &p, KUriFilterData::UriTypes t = KUriFilterData::NetProtocol)
> -            : regexp(QRegExp(r))
> +            : hintRe(QRegularExpression(r))
>              , prepend(p)

(pre-existing) `hintRe(r)` would be enough

REPOSITORY
  R241 KIO

BRANCH
  l-qregularexpression (branched from master)

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

To: ahmadsamir, #frameworks, dfaure, apol
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/20191226/2d2eb107/attachment.html>


More information about the Kde-frameworks-devel mailing list