[clazy] [Bug 389055] New: suggest simplification: `$smartpointer.data()->` to `$smartpointer->`
Milian Wolff
bugzilla_noreply at kde.org
Tue Jan 16 14:19:43 GMT 2018
https://bugs.kde.org/show_bug.cgi?id=389055
Bug ID: 389055
Summary: suggest simplification: `$smartpointer.data()->` to
`$smartpointer->`
Product: clazy
Version: unspecified
Platform: Other
OS: Linux
Status: UNCONFIRMED
Severity: normal
Priority: NOR
Component: general
Assignee: unassigned-bugs at kde.org
Reporter: mail at milianw.de
CC: smartins at kde.org
Target Milestone: ---
I've often seen ugly code bases that could be tidied up by applying the
following transformation:
`$smartpointer.data()->...` to `$smartpointer->...`
E.g. this is bad:
QScopedPointer<QObject*> myObj(new QObject);
myObj.data()->deleteLater();
This is much nicer:
QScopedPointer<QObject*> myObj(new QObject);
myObj->deleteLater();
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the Unassigned-bugs
mailing list