diff --git a/src/friendlist.cpp b/src/friendlist.cpp index 4429215e5..a783769c1 100644 --- a/src/friendlist.cpp +++ b/src/friendlist.cpp @@ -81,10 +81,5 @@ Friend* FriendList::findFriend(const ToxID& userId) QList FriendList::getAllFriends() { - QList res; - - for (auto it : friendList) - res.append(it); - - return res; + return friendList.values(); }