Remove DISALLOW_ macro from libcef_dll/ (see issue #3234)

Also perform related C++ cleanup:
- Use =default instead of {} for default implementations of
  constructors/destructors.
- Replace typedef with using.
This commit is contained in:
Marshall Greenblatt
2021-12-06 16:59:14 -05:00
parent 9484d6528c
commit 1eb55cbba8
22 changed files with 112 additions and 90 deletions

View File

@@ -8,7 +8,6 @@
#include <memory>
#include "include/base/cef_logging.h"
#include "include/base/cef_macros.h"
#include "include/cef_stream.h"
#include "include/cef_zip_reader.h"
#include "include/wrapper/cef_byte_read_handler.h"
@@ -30,6 +29,9 @@ class CefZipFile : public CefZipArchive::File {
public:
CefZipFile() : data_size_(0) {}
CefZipFile(const CefZipFile&) = delete;
CefZipFile& operator=(const CefZipFile&) = delete;
bool Initialize(size_t data_size) {
data_.reset(new unsigned char[data_size]);
if (data_) {
@@ -59,7 +61,6 @@ class CefZipFile : public CefZipArchive::File {
std::unique_ptr<unsigned char[]> data_;
IMPLEMENT_REFCOUNTING(CefZipFile);
DISALLOW_COPY_AND_ASSIGN(CefZipFile);
};
} // namespace