Fix Warnings:

warning: this ‘if’ clause does not guard... [-Wmisleading-indentation]
             if(_hash.isNull())
             ^~
This commit is contained in:
Phenom 2017-05-08 12:22:46 +02:00
parent 523730f31a
commit bf47edfd12

View File

@ -600,16 +600,16 @@ void RetroShareLink::check()
if(!checkPGPId(_GPGid)) _valid = false ; if(!checkPGPId(_GPGid)) _valid = false ;
break ; break ;
case TYPE_IDENTITY: case TYPE_IDENTITY:
if(_name.isNull()) if(_name.isNull())
_valid = false ; _valid = false ;
if(_radix_group_data.isNull()) if(_radix_group_data.isNull())
_valid = false ; _valid = false ;
if(_hash.isNull()) if(_hash.isNull())
_valid = false ; _valid = false ;
break ; break ;
case TYPE_PERSON: case TYPE_PERSON:
if(_size != 0) if(_size != 0)
@ -858,8 +858,8 @@ QString RetroShareLink::niceName() const
if (type() == TYPE_PERSON) if (type() == TYPE_PERSON)
return PeerDefs::rsid(name().toUtf8().constData(), RsPgpId(hash().toStdString())); return PeerDefs::rsid(name().toUtf8().constData(), RsPgpId(hash().toStdString()));
if(type() == TYPE_IDENTITY) if(type() == TYPE_IDENTITY)
return QObject::tr("Identity link (name=%1, ID=%2)").arg(_name).arg(_hash) ; return QObject::tr("Identity link (name=%1, ID=%2)").arg(_name).arg(_hash) ;
if(type() == TYPE_PUBLIC_MSG) { if(type() == TYPE_PUBLIC_MSG) {
RsPeerDetails detail; RsPeerDetails detail;