refactor: replace deprecated DISALLOW_COPY_AND_ASSIGN (#31633)

This commit is contained in:
Milan Burda 2021-11-03 12:41:45 +01:00 committed by GitHub
parent 2a2a1a834c
commit 65a980c673
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
231 changed files with 918 additions and 576 deletions

View file

@ -10,7 +10,6 @@
#include <vector>
#include "base/files/file_path.h"
#include "base/macros.h"
namespace electron {
@ -91,6 +90,10 @@ class JumpList {
explicit JumpList(const std::wstring& app_id);
~JumpList();
// disable copy
JumpList(const JumpList&) = delete;
JumpList& operator=(const JumpList&) = delete;
// Starts a new transaction, must be called before appending any categories,
// aborting or committing. After the method returns |min_items| will indicate
// the minimum number of items that will be displayed in the Jump List, and
@ -113,8 +116,6 @@ class JumpList {
private:
std::wstring app_id_;
CComPtr<ICustomDestinationList> destinations_;
DISALLOW_COPY_AND_ASSIGN(JumpList);
};
} // namespace electron