2021-01-21 04:55:41 +08:00
|
|
|
diff --git a/src/3rdparty/chromium/third_party/perfetto/include/perfetto/ext/base/circular_queue.h b/src/3rdparty/chromium/third_party/perfetto/include/perfetto/ext/base/circular_queue.h
|
2022-03-12 03:35:32 +08:00
|
|
|
index 18ca770..5585a67 100644
|
2021-01-21 04:55:41 +08:00
|
|
|
--- a/src/3rdparty/chromium/third_party/perfetto/include/perfetto/ext/base/circular_queue.h
|
|
|
|
+++ b/src/3rdparty/chromium/third_party/perfetto/include/perfetto/ext/base/circular_queue.h
|
2022-03-12 03:35:32 +08:00
|
|
|
@@ -74,16 +74,16 @@ class CircularQueue {
|
2021-01-21 04:55:41 +08:00
|
|
|
return queue_->Get(pos_);
|
|
|
|
}
|
|
|
|
|
|
|
|
- const T* operator->() const {
|
|
|
|
+ T* operator->() const {
|
2022-03-12 03:35:32 +08:00
|
|
|
return const_cast<CircularQueue<T>::Iterator*>(this)->operator->();
|
2021-01-21 04:55:41 +08:00
|
|
|
}
|
|
|
|
|
|
|
|
T& operator*() { return *(operator->()); }
|
|
|
|
- const T& operator*() const { return *(operator->()); }
|
|
|
|
+ T& operator*() const { return *(operator->()); }
|
|
|
|
|
2022-03-12 03:35:32 +08:00
|
|
|
value_type& operator[](difference_type i) { return *(*this + i); }
|
2021-01-21 04:55:41 +08:00
|
|
|
|
|
|
|
- const value_type& operator[](difference_type i) const {
|
|
|
|
+ value_type& operator[](difference_type i) const {
|
2022-03-12 03:35:32 +08:00
|
|
|
return const_cast<CircularQueue<T>::Iterator&>(*this)[i];
|
2021-01-21 04:55:41 +08:00
|
|
|
}
|
|
|
|
|