diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-10-24 13:22:06 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-12-05 17:04:15 +0100 |
commit | ca4cbac5f9cb17491f11bf164a41088ea19df62c (patch) | |
tree | 659ef6ca509df08b93b673eacc899a0416d54729 | |
parent | c357eb3f7483c17a184614c31ecea0a17cd30e92 (diff) | |
download | qtwebengine-chromium-ca4cbac5f9cb17491f11bf164a41088ea19df62c.tar.gz |
Fix build with g++ < 6
The enums in inlined constructors and destructors need class namespace
in this case too.
Change-Id: Iec442f9a7779c66597e11fa670da9f991d4ab791
Reviewed-by: Joerg Bornemann <joerg.bornemann@qt.io>
-rw-r--r-- | chromium/third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/chromium/third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h b/chromium/third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h index 0671c471cbe..7398df317a6 100644 --- a/chromium/third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h +++ b/chromium/third_party/WebKit/Source/platform/wtf/typed_arrays/ArrayBufferContents.h @@ -63,13 +63,13 @@ class WTF_EXPORT ArrayBufferContents { allocation_length_(0), data_(data), data_length_(0), - kind_(AllocationKind::kNormal), + kind_(ArrayBufferContents::AllocationKind::kNormal), deleter_(deleter) {} DataHandle(void* allocation_base, size_t allocation_length, void* data, size_t data_length, - AllocationKind kind, + ArrayBufferContents::AllocationKind kind, DataDeleter deleter) : allocation_base_(allocation_base), allocation_length_(allocation_length), @@ -94,11 +94,11 @@ class WTF_EXPORT ArrayBufferContents { reinterpret_cast<uintptr_t>(allocation_base_) + allocation_length_); switch (kind_) { - case AllocationKind::kNormal: + case ArrayBufferContents::AllocationKind::kNormal: DCHECK(deleter_); deleter_(data_); return; - case AllocationKind::kReservation: + case ArrayBufferContents::AllocationKind::kReservation: ReleaseReservedMemory(allocation_base_, allocation_length_); return; } |