From f0a862e71bc12d86a898901ef773475a7c964832 Mon Sep 17 00:00:00 2001 From: Shauren Date: Thu, 24 Aug 2023 00:51:26 +0200 Subject: Core/Misc: Modernize comparison operators --- src/common/Debugging/WheatyExceptionReport.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'src/common/Debugging') diff --git a/src/common/Debugging/WheatyExceptionReport.h b/src/common/Debugging/WheatyExceptionReport.h index 2b99dcbb83c..b1876528a78 100644 --- a/src/common/Debugging/WheatyExceptionReport.h +++ b/src/common/Debugging/WheatyExceptionReport.h @@ -7,6 +7,7 @@ #include #include #include +#include #include #include #include @@ -101,11 +102,8 @@ struct SymbolPair _offset = offset; } - bool operator<(SymbolPair const& other) const - { - return _offset < other._offset || - (_offset == other._offset && _type < other._type); - } + bool operator==(SymbolPair const& other) const = default; + std::strong_ordering operator<=>(SymbolPair const& other) const = default; DWORD _type; DWORD_PTR _offset; -- cgit v1.2.3