diff --git a/src/FluHttp.cpp b/src/FluHttp.cpp index bf8b4b8b..d9b4507e 100644 --- a/src/FluHttp.cpp +++ b/src/FluHttp.cpp @@ -636,13 +636,13 @@ HttpRequest* FluHttp::newRequest(QString url){ } void FluHttp::onStart(QPointer callable){ - if(callable){ + if (!callable.isNull()) { Q_EMIT callable->start(); } } void FluHttp::onFinish(QPointer callable,QPointer request){ - if(callable){ + if (!callable.isNull()) { Q_EMIT callable->finish(); } if(request&&request->parent()->inherits("FluHttp")){ @@ -651,31 +651,31 @@ void FluHttp::onFinish(QPointer callable,QPointer req } void FluHttp::onError(QPointer callable,int status,QString errorString,QString result){ - if(callable){ + if (!callable.isNull()) { Q_EMIT callable->error(status,errorString,result); } } void FluHttp::onSuccess(QPointer callable,QString result){ - if(callable){ + if (!callable.isNull()) { Q_EMIT callable->success(result); } } void FluHttp::onCache(QPointer callable,QString result){ - if(callable){ + if (!callable.isNull()) { Q_EMIT callable->cache(result); } } void FluHttp::onDownloadProgress(QPointer callable,qint64 recv,qint64 total){ - if(callable){ + if (!callable.isNull()) { Q_EMIT callable->downloadProgress(recv,total); } } void FluHttp::onUploadProgress(QPointer callable,qint64 sent,qint64 total){ - if(callable){ + if (!callable.isNull()) { Q_EMIT callable->uploadProgress(sent,total); } }