D26210: [KCoreAddons] Port QRegExp to QRegularExpression

Aleix Pol Gonzalez noreply at phabricator.kde.org
Thu Dec 26 01:29:43 GMT 2019


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

INLINE COMMENTS

> ahmadsamir wrote in klistopenfilesjob_unix.cpp:69
> I didn't even know there was a splitRef...
> 
> It'll have to be something like:
> 
>   QVector<QStringRef> pidList = out.splitRef(QRegularExpression(QStringLiteral("\\s+")), QString::SkipEmptyParts);
>   // remove duplicates
>   std::unique(pidList.begin(), pidList.end());
> 
> I'd better do it in a separate commit, given it's really going to change stuff here (that compiles BTW, so I know it works).
> 
> Interestingly running `lsof | wc -l` on my system gives 162709; so yeah, we should definitely replace QList with QVector and QString with QStringRef here. :D

Yes, okay, do it in a separate patch.

REPOSITORY
  R244 KCoreAddons

BRANCH
  l-qregularexpression (branched from master)

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

To: ahmadsamir, #frameworks, mpyne, 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/9efd62df/attachment.html>


More information about the Kde-frameworks-devel mailing list