Apply clang-format to all C, C++ and ObjC files (issue #2171)

This commit is contained in:
Marshall Greenblatt
2017-05-17 11:29:28 +02:00
parent a566549e04
commit 31d9407ee2
1331 changed files with 33014 additions and 32258 deletions

View File

@@ -47,9 +47,8 @@ class CefZipFile : public CefZipArchive::File {
virtual size_t GetDataSize() const OVERRIDE { return data_size_; }
virtual CefRefPtr<CefStreamReader> GetStreamReader() const OVERRIDE {
CefRefPtr<CefReadHandler> handler(
new CefByteReadHandler(data_.get(), data_size_,
const_cast<CefZipFile*>(this)));
CefRefPtr<CefReadHandler> handler(new CefByteReadHandler(
data_.get(), data_size_, const_cast<CefZipFile*>(this)));
return CefStreamReader::CreateForHandler(handler);
}
@@ -67,11 +66,9 @@ class CefZipFile : public CefZipArchive::File {
// CefZipArchive implementation
CefZipArchive::CefZipArchive() {
}
CefZipArchive::CefZipArchive() {}
CefZipArchive::~CefZipArchive() {
}
CefZipArchive::~CefZipArchive() {}
size_t CefZipArchive::Load(CefRefPtr<CefStreamReader> stream,
const CefString& password,
@@ -116,7 +113,7 @@ size_t CefZipArchive::Load(CefRefPtr<CefStreamReader> stream,
// Read the file contents.
do {
offset += reader->ReadFile(data + offset, size - offset);
offset += reader->ReadFile(data + offset, size - offset);
} while (offset < size && !reader->Eof());
DCHECK(offset == size);