mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
wrapper: Format with clang-tidy (see #3632)
This commit is contained in:
@@ -27,7 +27,7 @@ CefString ToLower(const CefString& str) {
|
||||
|
||||
class CefZipFile : public CefZipArchive::File {
|
||||
public:
|
||||
CefZipFile() : data_size_(0) {}
|
||||
CefZipFile() = default;
|
||||
|
||||
CefZipFile(const CefZipFile&) = delete;
|
||||
CefZipFile& operator=(const CefZipFile&) = delete;
|
||||
@@ -44,11 +44,11 @@ class CefZipFile : public CefZipArchive::File {
|
||||
}
|
||||
}
|
||||
|
||||
virtual const unsigned char* GetData() const override { return data_.get(); }
|
||||
const unsigned char* GetData() const override { return data_.get(); }
|
||||
|
||||
virtual size_t GetDataSize() const override { return data_size_; }
|
||||
size_t GetDataSize() const override { return data_size_; }
|
||||
|
||||
virtual CefRefPtr<CefStreamReader> GetStreamReader() const override {
|
||||
CefRefPtr<CefStreamReader> GetStreamReader() const override {
|
||||
CefRefPtr<CefReadHandler> handler(new CefByteReadHandler(
|
||||
data_.get(), data_size_, const_cast<CefZipFile*>(this)));
|
||||
return CefStreamReader::CreateForHandler(handler);
|
||||
@@ -57,7 +57,7 @@ class CefZipFile : public CefZipArchive::File {
|
||||
unsigned char* data() { return data_.get(); }
|
||||
|
||||
private:
|
||||
size_t data_size_;
|
||||
size_t data_size_ = 0;
|
||||
std::unique_ptr<unsigned char[]> data_;
|
||||
|
||||
IMPLEMENT_REFCOUNTING(CefZipFile);
|
||||
@@ -67,9 +67,9 @@ class CefZipFile : public CefZipArchive::File {
|
||||
|
||||
// CefZipArchive implementation
|
||||
|
||||
CefZipArchive::CefZipArchive() {}
|
||||
CefZipArchive::CefZipArchive() = default;
|
||||
|
||||
CefZipArchive::~CefZipArchive() {}
|
||||
CefZipArchive::~CefZipArchive() = default;
|
||||
|
||||
size_t CefZipArchive::Load(CefRefPtr<CefStreamReader> stream,
|
||||
const CefString& password,
|
||||
|
Reference in New Issue
Block a user