-
Bug
-
Resolution: Done
-
P3: Somewhat important
-
Qt Creator 2.8.0-rc
-
None
-
e98664690558aafa2833e07fd0c13a003cec8b32 af0582cdc9f6e8e0de0453846bda22c8956e6347
#include <QList>
struct Foo
{
int foo;
};
void assign()
{
QList<Foo> list;
return list.first().foo; // assign to local var
}
Result:
return const T localFirst = list.first().foo;
| For Gerrit Dashboard: QTCREATORBUG-9525 | ||||||
|---|---|---|---|---|---|---|
| # | Subject | Branch | Project | Status | CR | V |
| 58584,4 | CppEditor: No triggering for AssignToLocalVariable in return statements | 2.8 | qt-creator/qt-creator | Status: MERGED | +2 | 0 |