Use QPointer class.

--HG--
branch : feature
This commit is contained in:
Roman Telezhynskyi 2016-07-15 12:03:19 +03:00
parent a94daf6834
commit 1e6dc7c0a8

View File

@ -139,8 +139,8 @@ void FvUpdater::SkipUpdate()
{ {
qDebug() << "Skip update"; qDebug() << "Skip update";
FvAvailableUpdate* proposedUpdate = GetProposedUpdate(); QPointer<FvAvailableUpdate> proposedUpdate = GetProposedUpdate();
if (not proposedUpdate) if (proposedUpdate.isNull())
{ {
qWarning() << "Proposed update is NULL (shouldn't be at this point)"; qWarning() << "Proposed update is NULL (shouldn't be at this point)";
return; return;