Fix warning: control reaches end of non-void function

../../../trunk/retroshare-gui/src/gui/common/FriendListModel.cpp: In
member function ‘QVariant RsFriendListModel::displayRole(const
RsFriendListModel::EntryIndex&, int) const’:
../../../trunk/retroshare-gui/src/gui/common/FriendListModel.cpp:716:1:
warning: control reaches end of non-void function [-Wreturn-type]
  716 | }
      | ^
This commit is contained in:
Phenom 2020-05-09 14:34:48 +02:00
parent b40ca53f13
commit e3846f981c

View file

@ -681,6 +681,7 @@ QVariant RsFriendListModel::displayRole(const EntryIndex& e, int col) const
break;
case ENTRY_TYPE_NODE:
{
const HierarchicalNodeInformation *node = getNodeInfo(e);
if(!node)
@ -710,7 +711,10 @@ QVariant RsFriendListModel::displayRole(const EntryIndex& e, int col) const
default:
return QVariant();
} break;
}
break;
default: //ENTRY_TYPE
return QVariant();
}
}