ofz: Use-of-uninitialized-value
[LibreOffice.git] / external / pdfium / gcc-c++20-comparison.patch
blob0895ea8b5f9d062c618ebe2dcacd13ccd8c32edc
1 --- core/fxcrt/retain_ptr.h
2 +++ core/fxcrt/retain_ptr.h
3 @@ -135,6 +135,7 @@
4 mutable intptr_t m_nRefCount = 0;
5 };
7 +#if __cplusplus < 202002L
8 template <typename T, typename U>
9 inline bool operator==(const U* lhs, const RetainPtr<T>& rhs) {
10 return rhs == lhs;
11 @@ -144,6 +144,7 @@
12 inline bool operator!=(const U* lhs, const RetainPtr<T>& rhs) {
13 return rhs != lhs;
15 +#endif
17 } // namespace fxcrt