From 1e6dc7c0a826522cf6c208e91c5a2bf66545ad5b Mon Sep 17 00:00:00 2001 From: Roman Telezhynskyi Date: Fri, 15 Jul 2016 12:03:19 +0300 Subject: [PATCH] Use QPointer class. --HG-- branch : feature --- src/libs/fervor/fvupdater.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libs/fervor/fvupdater.cpp b/src/libs/fervor/fvupdater.cpp index fd41e71e1..00a10f146 100644 --- a/src/libs/fervor/fvupdater.cpp +++ b/src/libs/fervor/fvupdater.cpp @@ -139,8 +139,8 @@ void FvUpdater::SkipUpdate() { qDebug() << "Skip update"; - FvAvailableUpdate* proposedUpdate = GetProposedUpdate(); - if (not proposedUpdate) + QPointer proposedUpdate = GetProposedUpdate(); + if (proposedUpdate.isNull()) { qWarning() << "Proposed update is NULL (shouldn't be at this point)"; return;