QPainter: drop a pointless check

There's no need to check for nullptr before invoking delete.

Change-Id: Ied751f76f15f390bf86bbba53c14a3e450aa81e8
Reviewed-by: Gunnar Sletta <gunnar@sletta.org>
bb10
Marc Mutz 2014-09-07 10:55:57 +02:00
parent 44f65a0650
commit d04c2fbc1d
1 changed files with 1 additions and 3 deletions

View File

@ -209,9 +209,7 @@ QPainterPrivate::~QPainterPrivate()
{
delete emulationEngine;
qDeleteAll(states);
if (dummyState)
delete dummyState;
delete dummyState;
}