Valgrind memory analyzer issue
-
Hi,
When executing a valgrind memory analyse (Qt Creator) in my application, i get this message:
@
Conditional jump or move depends on uninitialized value (s) in Place::collidesWithItem ( const QGraphicsItem * other, Qt::ItemSelectionMode mode ) const in place.cpp:395
@
The function is:@
bool Place::collidesWithItem ( const QGraphicsItem * other, Qt::ItemSelectionMode mode ) const
{
Q_UNUSED(mode);
QPainterPath path1 = this->mapFromItem(other, other->shape()); // line place.cpp : 395
return path1.intersects(this->shape());
}
@Place is a QGraphicsEllipseItem object.
I did not understand this problem. help.
-
http://valgrind.org/docs/manual/mc-manual.html#mc-manual.errormsgs
I don't personally see anything wrong there (which doesn't mean there isn't something as I might also be missing it), but the above will explain the error msg at least :)