don't copy in make_shared in win32_desktop_notifications

This commit is contained in:
Jeremy Apthorp 2019-03-22 09:54:20 -07:00 committed by Samuel Attard
parent e352d735f6
commit 7e9a271852

View file

@ -426,7 +426,7 @@ void DesktopNotificationController::Notification::Set(std::wstring caption,
DesktopNotificationController::NotificationLink::NotificationLink(
DesktopNotificationController* controller)
: shared_ptr(make_shared<NotificationData>(NotificationData())) {
: shared_ptr(make_shared<NotificationData>()) {
get()->controller = controller;
}