refactor: use C++11 class member variable initialization (#27477)
This commit is contained in:
parent
f083380c38
commit
ddf3ef0a5f
93 changed files with 130 additions and 163 deletions
|
@ -75,7 +75,7 @@ bool LibnotifyNotification::Initialize() {
|
|||
|
||||
LibnotifyNotification::LibnotifyNotification(NotificationDelegate* delegate,
|
||||
NotificationPresenter* presenter)
|
||||
: Notification(delegate, presenter), notification_(nullptr) {}
|
||||
: Notification(delegate, presenter) {}
|
||||
|
||||
LibnotifyNotification::~LibnotifyNotification() {
|
||||
if (notification_) {
|
||||
|
|
|
@ -37,7 +37,7 @@ class LibnotifyNotification : public Notification {
|
|||
NotifyNotification*,
|
||||
char*);
|
||||
|
||||
NotifyNotification* notification_;
|
||||
NotifyNotification* notification_ = nullptr;
|
||||
|
||||
DISALLOW_COPY_AND_ASSIGN(LibnotifyNotification);
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue