Variables are not recognized as variables in methods, that define the operator << or >>:
CWaypoint &CWaypoint::operator =(const CWaypoint &rhs)
{
quint32 test;
}
void operator >>(QDataStream &dataStream,
CWaypoint *waypoint)
{
quint32 test;
}
In the upper example, VA 1522 colores the variables as a local ones. In the lower method not.
At the last final release, that was no problem.