mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-14 20:12:29 -04:00
Optimized some internals in the news feed items
- std::string -> const std::string& - QObjectList -> QSet<QObject*> git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4870 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
7cfdbd2d8d
commit
ff0d6ff25a
24 changed files with 105 additions and 165 deletions
|
@ -58,7 +58,7 @@ private slots:
|
|||
|
||||
private:
|
||||
void addFeedItem(QWidget *item);
|
||||
void addFeedItemIfUnique(QWidget *item, int itemType, std::string sslId, bool replace);
|
||||
void addFeedItemIfUnique(QWidget *item, int itemType, const std::string &sslId, bool replace);
|
||||
|
||||
void addFeedItemPeerConnect(RsFeedItem &fi);
|
||||
void addFeedItemPeerDisconnect(RsFeedItem &fi);
|
||||
|
@ -85,7 +85,7 @@ private:
|
|||
void sendNewsFeedChanged();
|
||||
|
||||
QLayout *mLayout;
|
||||
QObjectList widgetList;
|
||||
QSet<QObject*> widgets;
|
||||
|
||||
/* lists of feedItems */
|
||||
std::list<ForumNewItem *> mForumNewItems;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue