From 2981f71d2268087b04f6dfef2fd0d42a4f786b4d Mon Sep 17 00:00:00 2001 From: Nicolas Werner Date: Sun, 17 Oct 2021 17:33:59 +0200 Subject: [PATCH] lint using clang11 --- src/encryption/DeviceVerificationFlow.cpp | 4 ++-- src/notifications/ManagerWin.cpp | 12 +++--------- src/voip/WebRTCSession.cpp | 6 +----- 3 files changed, 6 insertions(+), 16 deletions(-) diff --git a/src/encryption/DeviceVerificationFlow.cpp b/src/encryption/DeviceVerificationFlow.cpp index ea5a060d..2481d4f9 100644 --- a/src/encryption/DeviceVerificationFlow.cpp +++ b/src/encryption/DeviceVerificationFlow.cpp @@ -631,8 +631,8 @@ DeviceVerificationFlow::sendVerificationRequest() req.to = this->toClient.to_string(); req.msgtype = "m.key.verification.request"; req.body = "User is requesting to verify keys with you. However, your client does " - "not support this method, so you will need to use the legacy method of " - "key verification."; + "not support this method, so you will need to use the legacy method of " + "key verification."; } send(req); diff --git a/src/notifications/ManagerWin.cpp b/src/notifications/ManagerWin.cpp index 556ca028..4376e4d8 100644 --- a/src/notifications/ManagerWin.cpp +++ b/src/notifications/ManagerWin.cpp @@ -100,16 +100,10 @@ NotificationsManager::systemPostNotification(const QString &line1, WinToast::instance()->showToast(templ, new CustomHandler()); } -void -NotificationsManager::actionInvoked(uint, QString) -{} -void -NotificationsManager::notificationReplied(uint, QString) -{} +void NotificationsManager::actionInvoked(uint, QString) {} +void NotificationsManager::notificationReplied(uint, QString) {} -void -NotificationsManager::notificationClosed(uint, uint) -{} +void NotificationsManager::notificationClosed(uint, uint) {} void NotificationsManager::removeNotification(const QString &, const QString &) diff --git a/src/voip/WebRTCSession.cpp b/src/voip/WebRTCSession.cpp index 8e0a9f79..801a365c 100644 --- a/src/voip/WebRTCSession.cpp +++ b/src/voip/WebRTCSession.cpp @@ -1114,11 +1114,7 @@ WebRTCSession::haveLocalPiP() const return false; } -bool -WebRTCSession::createOffer(webrtc::CallType, uint32_t) -{ - return false; -} +bool WebRTCSession::createOffer(webrtc::CallType, uint32_t) { return false; } bool WebRTCSession::acceptOffer(const std::string &)