Summary: | Improve check "qstring-allocations". Replace QString::setNum with static version QString::number | ||
---|---|---|---|
Product: | [Developer tools] clazy | Reporter: | Roman <dismine> |
Component: | general | Assignee: | Unassigned bugs <unassigned-bugs-null> |
Status: | RESOLVED NOT A BUG | ||
Severity: | wishlist | CC: | smartins |
Priority: | NOR | ||
Version First Reported In: | unspecified | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | ||
Sentry Crash Report: |
Description
Roman
2018-03-23 09:43:10 UTC
Only if the second form uses less memory allocations than the first. They might be the same, I'll have to check with heaptrack Tested with heaptrack, they are completely the same, regarding allocations, so not good for qstring-allocations. Maybe could have some readability advantage though, but too thin for its own check, as each check adds overhead |