mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
Made NotificationDelegateImpl final
The class is designed to call `delete` on itself and because it doesn't have a virtual destructor, it shouldn't be derived from.
This commit is contained in:
@@ -45,7 +45,7 @@ void OnWebNotificationAllowed(base::WeakPtr<Notification> notification,
|
||||
}
|
||||
}
|
||||
|
||||
class NotificationDelegateImpl : public brightray::NotificationDelegate {
|
||||
class NotificationDelegateImpl final : public brightray::NotificationDelegate {
|
||||
public:
|
||||
explicit NotificationDelegateImpl(const std::string& notification_id)
|
||||
: notification_id_(notification_id) {}
|
||||
|
||||
Reference in New Issue
Block a user