Port some usage of QRegExp to QRegularExpression
ClosedPublic

Authored by ahmadsamir on Mar 5 2020, 7:26 AM.

Details

Diff Detail

Repository
R120 Plasma Workspace
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
ahmadsamir created this revision.Mar 5 2020, 7:26 AM
Restricted Application added a project: Plasma. · View Herald TranscriptMar 5 2020, 7:26 AM
ahmadsamir requested review of this revision.Mar 5 2020, 7:26 AM
apol added a comment.Mar 18 2020, 11:07 AM

+1 overall

dataengines/devicenotifications/ksolidnotify.cpp
131

it could make sense to use splitRef here, unsure where this is used.

ksmserver/server.cpp
671

Why the changes from [0-9] to \d?

ahmadsamir marked 2 inline comments as done.
ahmadsamir removed reviewers: davidedmundson, apol, broulik.

Address comments

ahmadsamir added inline comments.Mar 18 2020, 12:18 PM
ksmserver/server.cpp
671

Less cluttered; but maybe not as readable. I'll revert it.

ahmadsamir edited the summary of this revision. (Show Details)Mar 18 2020, 12:20 PM
apol accepted this revision.Mar 18 2020, 3:53 PM
apol added inline comments.
runners/calculator/calculatorrunner.cpp
199–200

If you could look into de-duplicating these QRegularExpressions in a separate patch, that would be awesome.

This revision is now accepted and ready to land.Mar 18 2020, 3:53 PM
This revision was automatically updated to reflect the committed changes.