forked from blue/squawk
cleanup some warnings suppression
This commit is contained in:
parent
5fbb03fc46
commit
23ec80ccba
26 changed files with 630 additions and 924 deletions
|
@ -31,12 +31,10 @@ Room::Room(Models::Account* acc, Models::Room* p_room, QWidget* parent):
|
|||
connect(room, &Models::Room::participantLeft, this, &Room::onParticipantLeft);
|
||||
}
|
||||
|
||||
Room::~Room()
|
||||
{
|
||||
Room::~Room() {
|
||||
}
|
||||
|
||||
Shared::Message Room::createMessage() const
|
||||
{
|
||||
Shared::Message Room::createMessage() const {
|
||||
Shared::Message msg = Conversation::createMessage();
|
||||
msg.setType(Shared::Message::groupChat);
|
||||
msg.setFromJid(room->getJid());
|
||||
|
@ -45,13 +43,12 @@ Shared::Message Room::createMessage() const
|
|||
return msg;
|
||||
}
|
||||
|
||||
bool Room::autoJoined() const
|
||||
{
|
||||
bool Room::autoJoined() const {
|
||||
return room->getAutoJoin();
|
||||
}
|
||||
|
||||
void Room::onRoomChanged(Models::Item* item, int row, int col)
|
||||
{
|
||||
void Room::onRoomChanged(Models::Item* item, int row, int col) {
|
||||
SHARED_UNUSED(row);
|
||||
if (item == room) {
|
||||
switch (col) {
|
||||
case 0:
|
||||
|
@ -67,11 +64,10 @@ void Room::onRoomChanged(Models::Item* item, int row, int col)
|
|||
}
|
||||
}
|
||||
|
||||
void Room::onParticipantJoined(const Models::Participant& participant)
|
||||
{
|
||||
|
||||
void Room::onParticipantJoined(const Models::Participant& participant) {
|
||||
SHARED_UNUSED(participant);
|
||||
}
|
||||
|
||||
void Room::onParticipantLeft(const QString& name)
|
||||
{
|
||||
void Room::onParticipantLeft(const QString& name) {
|
||||
SHARED_UNUSED(name);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue