Use QPointer class.
--HG-- branch : feature
This commit is contained in:
parent
a94daf6834
commit
1e6dc7c0a8
|
@ -139,8 +139,8 @@ void FvUpdater::SkipUpdate()
|
|||
{
|
||||
qDebug() << "Skip update";
|
||||
|
||||
FvAvailableUpdate* proposedUpdate = GetProposedUpdate();
|
||||
if (not proposedUpdate)
|
||||
QPointer<FvAvailableUpdate> proposedUpdate = GetProposedUpdate();
|
||||
if (proposedUpdate.isNull())
|
||||
{
|
||||
qWarning() << "Proposed update is NULL (shouldn't be at this point)";
|
||||
return;
|
||||
|
|
Loading…
Reference in New Issue
Block a user