D24614: Micro optimizations

2019-10-14 Thread Albert Astals Cid
aacid closed this revision. REPOSITORY R31 Breeze REVISION DETAIL https://phabricator.kde.org/D24614 To: aacid, zzag Cc: zzag, plasma-devel, LeGast00n, The-Feren-OS-Dev, jraleigh, fbampaloukas, GB_2, ragreen, ZrenBot, ngraham, alexeymin, himcesjf, lesliezhai, ali-mohamed, jensreuterberg, a

D24614: Micro optimizations

2019-10-14 Thread Vlad Zahorodnii
zzag accepted this revision. zzag added a comment. This revision is now accepted and ready to land. > Add some const & for things that return const & so there's no need to make a copy For what it's worth, copy elision is guaranteed starting from C++17. \o/ REPOSITORY R31 Breeze BRANCH

D24614: Micro optimizations

2019-10-13 Thread Albert Astals Cid
aacid created this revision. Herald added a project: Plasma. Herald added a subscriber: plasma-devel. aacid requested review of this revision. REVISION SUMMARY Add some const & for things that return const & so there's no need to make a copy Add a std::move for a thing that we pass by copy an