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: [email protected]
Reporter: [email protected]
CC: [email protected]
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 watching all bug changes.