Pass() is deprecated for std::move
This commit is contained in:
parent
948e7c4055
commit
baf5f384cd
14 changed files with 52 additions and 48 deletions
|
@ -33,7 +33,7 @@ void OnWebNotificationAllowed(
|
|||
if (!presenter)
|
||||
return;
|
||||
scoped_ptr<NotificationDelegateAdapter> adapter(
|
||||
new NotificationDelegateAdapter(delegate.Pass()));
|
||||
new NotificationDelegateAdapter(std::move(delegate)));
|
||||
auto notification = presenter->CreateNotification(adapter.get());
|
||||
if (notification) {
|
||||
ignore_result(adapter.release()); // it will release itself automatically.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue