Remove CEF-specific integer and char16 typedef's (see #3507)

This commit is contained in:
Marshall Greenblatt
2023-06-01 17:06:15 +03:00
parent 695ee2a041
commit 5042d71408
150 changed files with 597 additions and 621 deletions

View File

@@ -27,7 +27,7 @@ BytesWriteHandler::~BytesWriteHandler() {
size_t BytesWriteHandler::Write(const void* ptr, size_t size, size_t n) {
base::AutoLock lock_scope(lock_);
size_t rv;
if (offset_ + static_cast<int64>(size * n) >= datasize_ &&
if (offset_ + static_cast<int64_t>(size * n) >= datasize_ &&
Grow(size * n) == 0) {
rv = 0;
} else {
@@ -39,7 +39,7 @@ size_t BytesWriteHandler::Write(const void* ptr, size_t size, size_t n) {
return rv;
}
int BytesWriteHandler::Seek(int64 offset, int whence) {
int BytesWriteHandler::Seek(int64_t offset, int whence) {
int rv = -1L;
base::AutoLock lock_scope(lock_);
switch (whence) {
@@ -51,7 +51,7 @@ int BytesWriteHandler::Seek(int64 offset, int whence) {
rv = 0;
break;
case SEEK_END: {
int64 offset_abs = std::abs(offset);
int64_t offset_abs = std::abs(offset);
if (offset_abs > datasize_) {
break;
}
@@ -71,7 +71,7 @@ int BytesWriteHandler::Seek(int64 offset, int whence) {
return rv;
}
int64 BytesWriteHandler::Tell() {
int64_t BytesWriteHandler::Tell() {
base::AutoLock lock_scope(lock_);
return offset_;
}