Skip to content

Commit

Permalink
Use QSharedPointer<T>::create for talk reply in systray.mm
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <claudio.cambra@nextcloud.com>
  • Loading branch information
claucambra committed Jul 24, 2023
1 parent 08098b8 commit 53cc438
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/gui/systray.mm
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,8 @@ void sendTalkReply(UNNotificationResponse *response, UNNotificationContent* cont
<< "Token:" << qToken
<< "Account:" << qAccount;

const auto talkReply = QSharedPointer<OCC::TalkReply>(new OCC::TalkReply(accountState.data(), OCC::Systray::instance()));
const auto talkReply = QSharedPointer<OCC::TalkReply>::create(
accountState.data(), OCC::Systray::instance());
talkReply->sendReplyMessage(qToken, qReply, qReplyTo);
}

Expand Down

0 comments on commit 53cc438

Please sign in to comment.