[clazy] [Bug 408871] New: False positive with -Wclazy-qstring-left
Andre Woebbeking
bugzilla_noreply at kde.org
Tue Jun 18 12:42:34 BST 2019
https://bugs.kde.org/show_bug.cgi?id=408871
Bug ID: 408871
Summary: False positive with -Wclazy-qstring-left
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: REPORTED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: woebbeking at kde.org
CC: smartins at kde.org
Target Milestone: ---
Hi,
the following code
QString text;
QStringList list;
list.append(text.left(1));
gives me "warning: Use QString::at(0) instead of QString::left(1) to avoid
temporary allocations". But append() needs a QString so there is no way to
avoid the temporary.
I'm using clazy 1.5.
Cheers,
André
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list