reduce a lot of string allocations

Reason for the change

Required to enable KDE_COMPILERSETTINGS_LEVEL

Test plan

Pass build and tests

Screenshots or screen recordings

Bugs fixed

Merge request reports

Loading