From: Claudio Cambra Date: Mon, 24 Jul 2023 23:13:32 +0000 (+0800) Subject: Use QSharedPointer::create for talk reply in systray.mm X-Git-Tag: archive/raspbian/3.16.7-1_deb13u1+rpi1~1^2~92^2^2~72^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=53cc438bf1ecad4bd45b317c04313040783528bc;p=nextcloud-desktop.git Use QSharedPointer::create for talk reply in systray.mm Signed-off-by: Claudio Cambra --- diff --git a/src/gui/systray.mm b/src/gui/systray.mm index f17372baf..505d18ec9 100644 --- a/src/gui/systray.mm +++ b/src/gui/systray.mm @@ -58,7 +58,8 @@ void sendTalkReply(UNNotificationResponse *response, UNNotificationContent* cont << "Token:" << qToken << "Account:" << qAccount; - const auto talkReply = QSharedPointer(new OCC::TalkReply(accountState.data(), OCC::Systray::instance())); + const auto talkReply = QSharedPointer::create( + accountState.data(), OCC::Systray::instance()); talkReply->sendReplyMessage(qToken, qReply, qReplyTo); }