mirror of
https://github.com/RetroShare/RetroShare.git
synced 2024-12-28 00:49:28 -05:00
Fix Clang warnings: change ChatDialog::init definition
warning: 'PopupChatDialog::init' hides overloaded virtual function [- Woverloaded-virtual] virtual void init(const ChatId &chat_id, const QString &title); ^ /retroshare-gui/src/gui/chat/ChatDialog.h:87: hidden overloaded virtual function 'ChatDialog::init' declared here: type mismatch at 1st parameter ('ChatId' vs 'const ChatId &') virtual void init(ChatId id, const QString &title); ^
This commit is contained in:
parent
9319caffc7
commit
eea49d96bf
@ -63,7 +63,7 @@ void ChatDialog::closeEvent(QCloseEvent *event)
|
|||||||
emit dialogClose(this);
|
emit dialogClose(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChatDialog::init(ChatId id, const QString &title)
|
void ChatDialog::init(const ChatId &id, const QString &title)
|
||||||
{
|
{
|
||||||
mChatId = id;
|
mChatId = id;
|
||||||
ChatWidget *cw = getChatWidget();
|
ChatWidget *cw = getChatWidget();
|
||||||
@ -102,7 +102,7 @@ void ChatDialog::init(ChatId id, const QString &title)
|
|||||||
if (chatflags & RS_CHAT_OPEN) {
|
if (chatflags & RS_CHAT_OPEN) {
|
||||||
if (id.isLobbyId()) {
|
if (id.isLobbyId()) {
|
||||||
ChatLobbyDialog* cld = new ChatLobbyDialog(id.toLobbyId());
|
ChatLobbyDialog* cld = new ChatLobbyDialog(id.toLobbyId());
|
||||||
cld->init();
|
cld->init(ChatId(), "");
|
||||||
cd = cld;
|
cd = cld;
|
||||||
}
|
}
|
||||||
else if(id.isDistantChatId())
|
else if(id.isDistantChatId())
|
||||||
|
@ -84,7 +84,7 @@ protected:
|
|||||||
virtual QString getPeerName(const ChatId &sslid) const ; // can be overloaded for chat dialogs that have specific peers
|
virtual QString getPeerName(const ChatId &sslid) const ; // can be overloaded for chat dialogs that have specific peers
|
||||||
virtual QString getOwnName() const;
|
virtual QString getOwnName() const;
|
||||||
|
|
||||||
virtual void init(ChatId id, const QString &title);
|
virtual void init(const ChatId &id, const QString &title);
|
||||||
virtual void addChatMsg(const ChatMessage& msg) = 0;
|
virtual void addChatMsg(const ChatMessage& msg) = 0;
|
||||||
|
|
||||||
ChatId mChatId;
|
ChatId mChatId;
|
||||||
|
@ -304,12 +304,7 @@ void ChatLobbyDialog::showInPeopleTab()
|
|||||||
idDialog->navigate(nickname);
|
idDialog->navigate(nickname);
|
||||||
}
|
}
|
||||||
|
|
||||||
void ChatLobbyDialog::init(ChatId /*id*/, const QString &/*title*/)
|
void ChatLobbyDialog::init(const ChatId &/*id*/, const QString &/*title*/)
|
||||||
{
|
|
||||||
init();
|
|
||||||
}
|
|
||||||
|
|
||||||
void ChatLobbyDialog::init()
|
|
||||||
{
|
{
|
||||||
ChatLobbyInfo linfo ;
|
ChatLobbyInfo linfo ;
|
||||||
|
|
||||||
|
@ -71,8 +71,7 @@ protected:
|
|||||||
virtual ~ChatLobbyDialog();
|
virtual ~ChatLobbyDialog();
|
||||||
|
|
||||||
void processSettings(bool load);
|
void processSettings(bool load);
|
||||||
virtual void init(ChatId id, const QString &title);
|
virtual void init(const ChatId &id, const QString &title);
|
||||||
void init();
|
|
||||||
virtual bool canClose();
|
virtual bool canClose();
|
||||||
virtual void addChatMsg(const ChatMessage &msg);
|
virtual void addChatMsg(const ChatMessage &msg);
|
||||||
|
|
||||||
|
@ -46,7 +46,7 @@ protected:
|
|||||||
/** Default destructor */
|
/** Default destructor */
|
||||||
virtual ~PopupChatDialog();
|
virtual ~PopupChatDialog();
|
||||||
|
|
||||||
virtual void init(const ChatId &chat_id, const QString &title);
|
virtual void init(const ChatId &chat_id, const QString &title);
|
||||||
virtual void showDialog(uint chatflags);
|
virtual void showDialog(uint chatflags);
|
||||||
virtual ChatWidget *getChatWidget();
|
virtual ChatWidget *getChatWidget();
|
||||||
virtual bool hasPeerStatus() { return true; }
|
virtual bool hasPeerStatus() { return true; }
|
||||||
|
Loading…
Reference in New Issue
Block a user