| Summary: | Check converting number to string | ||
|---|---|---|---|
| Product: | [Developer tools] clazy | Reporter: | Roman <dismine> |
| Component: | general | Assignee: | 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/Implemented In: | ||
| Sentry Crash Report: | |||
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.