mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
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:
@@ -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
|
||||
|
Reference in New Issue
Block a user