mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
refactor: run clang-tidy (#20231)
* refactor: clang-tidy modernize-use-nullptr * refactor: clang-tidy modernize-use-equals-default * refactor: clang-tidy modernize-make-unique * refactor: omit nullptr arg from unique_ptr.reset() As per comment by @miniak
This commit is contained in:
@@ -16,9 +16,9 @@ NotificationPresenter* NotificationPresenter::Create() {
|
||||
return new NotificationPresenterLinux;
|
||||
}
|
||||
|
||||
NotificationPresenterLinux::NotificationPresenterLinux() {}
|
||||
NotificationPresenterLinux::NotificationPresenterLinux() = default;
|
||||
|
||||
NotificationPresenterLinux::~NotificationPresenterLinux() {}
|
||||
NotificationPresenterLinux::~NotificationPresenterLinux() = default;
|
||||
|
||||
Notification* NotificationPresenterLinux::CreateNotificationObject(
|
||||
NotificationDelegate* delegate) {
|
||||
|
||||
@@ -10,7 +10,7 @@
|
||||
|
||||
namespace electron {
|
||||
|
||||
NotificationPresenter::NotificationPresenter() {}
|
||||
NotificationPresenter::NotificationPresenter() = default;
|
||||
|
||||
NotificationPresenter::~NotificationPresenter() {
|
||||
for (Notification* notification : notifications_)
|
||||
|
||||
@@ -75,7 +75,7 @@ PlatformNotificationService::PlatformNotificationService(
|
||||
AtomBrowserClient* browser_client)
|
||||
: browser_client_(browser_client) {}
|
||||
|
||||
PlatformNotificationService::~PlatformNotificationService() {}
|
||||
PlatformNotificationService::~PlatformNotificationService() = default;
|
||||
|
||||
void PlatformNotificationService::DisplayNotification(
|
||||
content::RenderProcessHost* render_process_host,
|
||||
|
||||
Reference in New Issue
Block a user