mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-10-01 02:35:48 -04:00
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:
parent
b40ca53f13
commit
e3846f981c
@ -681,6 +681,7 @@ QVariant RsFriendListModel::displayRole(const EntryIndex& e, int col) const
|
|||||||
break;
|
break;
|
||||||
|
|
||||||
case ENTRY_TYPE_NODE:
|
case ENTRY_TYPE_NODE:
|
||||||
|
{
|
||||||
const HierarchicalNodeInformation *node = getNodeInfo(e);
|
const HierarchicalNodeInformation *node = getNodeInfo(e);
|
||||||
|
|
||||||
if(!node)
|
if(!node)
|
||||||
@ -710,7 +711,10 @@ QVariant RsFriendListModel::displayRole(const EntryIndex& e, int col) const
|
|||||||
default:
|
default:
|
||||||
return QVariant();
|
return QVariant();
|
||||||
} break;
|
} break;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
|
||||||
|
default: //ENTRY_TYPE
|
||||||
return QVariant();
|
return QVariant();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user