Make Plasma::Svg::elementRect a bit leaner

Authored by apol on Jun 13 2019, 6:41 PM.

Description

Make Plasma::Svg::elementRect a bit leaner

Summary:
Don't double-access maps
Don't construct ids more times than necessary.
Make regular expression static so it's not compiled on every run.
Remove unused code.

Reviewers: Plasma, Frameworks, davidedmundson

Reviewed By: Plasma, davidedmundson

Subscribers: bruns, kde-frameworks-devel

Tags: Frameworks

Differential Revision: https://phabricator.kde.org/D21788

Details

Committed
apolJun 21 2019, 1:25 PM
Reviewer
Plasma
Differential Revision
D21788: Make Plasma::Svg::elementRect a bit leaner
Parents
R242:eff37abdcbda: Automatically set version of desktopthemes packages to KF5_VERSION
Branches
Unknown
Tags
Unknown