Bug 402917

Summary: Check converting number to string
Product: [Developer tools] clazy Reporter: Roman <dismine>
Component: generalAssignee: Unassigned bugs <unassigned-bugs-null>
Status: REPORTED ---    
Severity: minor 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 2019-01-06 11:18:10 UTC
I have found in my code strings like this: 

int value = 2; // just an example

...

QString("%1").arg(value)



Clazy complains about qstring-allocations here. This is correct, but such a code has small sense since we could just write 

QString::number(value) or QString().number(value)

It seems Clazy could improve readability if advises replace single placeholder (%1-%99) with conversion from number.