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:
parent
505f2ab9e7
commit
9ca658238b
1 changed files with 1 additions and 1 deletions
|
@ -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) {}
|
||||
|
|
Loading…
Reference in a new issue