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

@ -12,7 +12,6 @@
#include "base/files/file.h"
#include "base/files/file_path.h"
#include "base/macros.h"
#include "base/synchronization/lock.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
@ -63,6 +62,10 @@ class Archive {
explicit Archive(const base::FilePath& path);
virtual ~Archive();
// disable copy
Archive(const Archive&) = delete;
Archive& operator=(const Archive&) = delete;
// Read and parse the header.
bool Init();
@ -108,8 +111,6 @@ class Archive {
std::unordered_map<base::FilePath::StringType,
std::unique_ptr<ScopedTemporaryFile>>
external_files_;
DISALLOW_COPY_AND_ASSIGN(Archive);
};
} // namespace asar