[Calculator Runner] Minor code optimisation
ClosedPublic

Authored by ahmadsamir on Mar 18 2020, 5:30 PM.

Details

Summary

Remove redunant QString::contains() checks.

Create one QRegularExpression object and use setPattern().

Test Plan

make && ctest

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 18 2020, 5:30 PM
Restricted Application added a project: Plasma. · View Herald TranscriptMar 18 2020, 5:30 PM
ahmadsamir requested review of this revision.Mar 18 2020, 5:30 PM
davidedmundson accepted this revision.Mar 18 2020, 6:38 PM
This revision is now accepted and ready to land.Mar 18 2020, 6:38 PM
This revision was automatically updated to reflect the committed changes.