QPainterPath: amend a comment

Casting towards more derived classes is "downcasting",
not "upcasting".

Change-Id: I1373a073ba81fb2c2b77c35ac1916a53ce30b86c
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
Giuseppe D'Angelo 2019-05-13 19:07:14 +02:00
parent cfeb09fcc8
commit 2353cb00cb
1 changed files with 1 additions and 1 deletions

View File

@ -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);