Hi, I just have found in my code string like this: QString str = QString().setNum(1234); This can be replaced as: QString str = QString::number(1234); I checked Qt's source code and setNum() uses number() inside anyway. I assume calling setNum() like this should be case for "qstring-allocations".
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