Fix Clang warnings: 'ChatLobbyDialog::init' hides overloaded virtual

function

warning: 'ChatLobbyDialog::init' hides overloaded virtual function [-
Woverloaded-virtual]
    virtual void init();
                 ^
/retroshare-gui/src/gui/chat/ChatDialog.h:87: hidden overloaded virtual
function 'ChatDialog::init' declared here: different number of
parameters (2 vs 0)
    virtual void init(ChatId id, const QString &title);
                 ^
This commit is contained in:
Phenom 2017-03-18 11:19:42 +01:00 committed by csoler
parent de4f6c06dd
commit e0225efef3
2 changed files with 7 additions and 1 deletions

View File

@ -304,6 +304,11 @@ void ChatLobbyDialog::showInPeopleTab()
idDialog->navigate(nickname);
}
void ChatLobbyDialog::init(ChatId /*id*/, const QString &/*title*/)
{
init();
}
void ChatLobbyDialog::init()
{
ChatLobbyInfo linfo ;

View File

@ -71,7 +71,8 @@ protected:
virtual ~ChatLobbyDialog();
void processSettings(bool load);
virtual void init();
virtual void init(ChatId id, const QString &title);
void init();
virtual bool canClose();
virtual void addChatMsg(const ChatMessage &msg);