mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Merge pull request #4553 from nextcloud/fixBuild
add explicit capture for lambda
This commit is contained in:
commit
4c9a2452b4
@ -150,9 +150,11 @@ void ServerNotificationHandler::slotNotificationsReceived(const QJsonDocument &j
|
||||
// Add another action to dismiss notification on server
|
||||
// https://github.com/owncloud/notifications/blob/master/docs/ocs-endpoint-v1.md#deleting-a-notification-for-a-user
|
||||
constexpr auto deleteVerb = "DELETE";
|
||||
if (std::find_if(std::cbegin(a._links), std::cend(a._links), [](const ActivityLink& link) {
|
||||
return link._verb == deleteVerb;
|
||||
}) == std::cend(a._links)) {
|
||||
const auto itLink = std::find_if(std::cbegin(a._links), std::cend(a._links), [deleteVerb](const ActivityLink& link) {
|
||||
Q_UNUSED(deleteVerb)
|
||||
return link._verb == deleteVerb;
|
||||
});
|
||||
if (itLink == std::cend(a._links)) {
|
||||
ActivityLink al;
|
||||
al._label = tr("Dismiss");
|
||||
al._link = Utility::concatUrlPath(ai->account()->url(), notificationsPath + "/" + QString::number(a._id)).toString();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user