From 8d88aa5d09db0fddbfcf163df3eaf6df330129cd Mon Sep 17 00:00:00 2001 From: vae Date: Sun, 9 May 2021 03:30:06 +0300 Subject: [PATCH] fix: empty statements --- core/archive.cpp | 2 +- core/handlers/messagehandler.cpp | 2 +- core/urlstorage.cpp | 2 +- ui/models/contact.cpp | 2 +- ui/models/messagefeed.h | 6 +++--- ui/utils/exponentialblur.h | 2 +- ui/utils/messagedelegate.h | 2 +- ui/widgets/account.cpp | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/core/archive.cpp b/core/archive.cpp index 96a8c0d..c29c9a0 100644 --- a/core/archive.cpp +++ b/core/archive.cpp @@ -318,7 +318,7 @@ void Core::Archive::changeMessage(const QString& id, const QMapchangeMessage(id, cData); } - ; + emit acc->changeMessage(jid, id, cData); pendingStateMessages.erase(itr); handled = true; diff --git a/core/urlstorage.cpp b/core/urlstorage.cpp index f59ff62..109cfea 100644 --- a/core/urlstorage.cpp +++ b/core/urlstorage.cpp @@ -202,7 +202,7 @@ void Core::UrlStorage::addFile(const std::list& msgs, const } UrlInfo info (path, msgs); - writeInfo(url, info, true);; + writeInfo(url, info, true); } QString Core::UrlStorage::addMessageAndCheckForPath(const QString& url, const QString& account, const QString& jid, const QString& id) diff --git a/ui/models/contact.cpp b/ui/models/contact.cpp index d54fccf..4c3432b 100644 --- a/ui/models/contact.cpp +++ b/ui/models/contact.cpp @@ -211,7 +211,7 @@ QIcon Models::Contact::getStatusIcon(bool big) const if (getMessagesCount() > 0) { return Shared::icon("mail-message", big); } else if (state == Shared::SubscriptionState::both || state == Shared::SubscriptionState::to) { - return Shared::availabilityIcon(availability, big);; + return Shared::availabilityIcon(availability, big); } else { return Shared::subscriptionStateIcon(state, big); } diff --git a/ui/models/messagefeed.h b/ui/models/messagefeed.h index abf67ee..f68fe8c 100644 --- a/ui/models/messagefeed.h +++ b/ui/models/messagefeed.h @@ -187,9 +187,9 @@ struct FeedItem { Shared::Message::State state; Attachment attach; }; -}; +} -Q_DECLARE_METATYPE(Models::Attachment); -Q_DECLARE_METATYPE(Models::FeedItem); +Q_DECLARE_METATYPE(Models::Attachment) +Q_DECLARE_METATYPE(Models::FeedItem) #endif // MESSAGEFEED_H diff --git a/ui/utils/exponentialblur.h b/ui/utils/exponentialblur.h index 0a5df8a..32b703c 100644 --- a/ui/utils/exponentialblur.h +++ b/ui/utils/exponentialblur.h @@ -29,6 +29,6 @@ namespace Utils { void exponentialblur(QImage &img, qreal radius, bool improvedQuality = false, int transposed = 0); -}; +} #endif // EXPONENTIALBLUR_H diff --git a/ui/utils/messagedelegate.h b/ui/utils/messagedelegate.h index 6a257b7..81163bb 100644 --- a/ui/utils/messagedelegate.h +++ b/ui/utils/messagedelegate.h @@ -36,7 +36,7 @@ namespace Models { struct FeedItem; -}; +} class MessageDelegate : public QStyledItemDelegate { diff --git a/ui/widgets/account.cpp b/ui/widgets/account.cpp index ba3af6b..d0ea9a0 100644 --- a/ui/widgets/account.cpp +++ b/ui/widgets/account.cpp @@ -59,7 +59,7 @@ QMap Account::value() const void Account::lockId() { - m_ui->name->setReadOnly(true);; + m_ui->name->setReadOnly(true); } void Account::setData(const QMap& data)