mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-07-01 17:46:52 -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
1 changed files with 62 additions and 58 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue