QPainterPath: amend a comment
Casting towards more derived classes is "downcasting", not "upcasting". Change-Id: I1373a073ba81fb2c2b77c35ac1916a53ce30b86c Reviewed-by: Lars Knoll <lars.knoll@qt.io>
parent
cfeb09fcc8
commit
2353cb00cb
|
|
@ -75,7 +75,7 @@ struct QPainterPathPrivateDeleter
|
|||
{
|
||||
static inline void cleanup(QPainterPathPrivate *d)
|
||||
{
|
||||
// note - we must up-cast to QPainterPathData since QPainterPathPrivate
|
||||
// note - we must downcast to QPainterPathData since QPainterPathPrivate
|
||||
// has a non-virtual destructor!
|
||||
if (d && !d->ref.deref())
|
||||
delete static_cast<QPainterPathData *>(d);
|
||||
|
|
|
|||
Loading…
Reference in New Issue