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";
|
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;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user