mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-08-09 06:42:19 -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
|
@ -42,9 +42,8 @@
|
|||
****/
|
||||
|
||||
/** Constructor */
|
||||
ChatMsgItem::ChatMsgItem(FeedHolder *parent, uint32_t feedId, std::string peerId, std::string message, bool isHome)
|
||||
:QWidget(NULL), mParent(parent), mFeedId(feedId),
|
||||
mPeerId(peerId), mIsHome(isHome)
|
||||
ChatMsgItem::ChatMsgItem(FeedHolder *parent, uint32_t feedId, const std::string &peerId, const std::string &message)
|
||||
:QWidget(NULL), mParent(parent), mFeedId(feedId), mPeerId(peerId)
|
||||
{
|
||||
/* Invoke the Qt Designer generated object setup routine */
|
||||
setupUi(this);
|
||||
|
@ -140,7 +139,7 @@ void ChatMsgItem::updateItem()
|
|||
return;
|
||||
}
|
||||
|
||||
void ChatMsgItem::insertChat(std::string &message)
|
||||
void ChatMsgItem::insertChat(const std::string &message)
|
||||
{
|
||||
#ifdef DEBUG_ITEM
|
||||
std::cerr << "ChatMsgItem::insertChat(): " << msg << std::endl;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue