From e8d5fb89e4465e8ef64920f12e7cb60e82057658 Mon Sep 17 00:00:00 2001 From: mitaclaw <140017135+mitaclaw@users.noreply.github.com> Date: Tue, 8 Oct 2024 17:16:57 -0700 Subject: C++20: Synthesize `operator!=` From `operator==` The inequality operator is automatically generated by the compiler if `operator==` is defined. --- Source/Core/Common/Config/ConfigInfo.cpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'Source/Core/Common/Config/ConfigInfo.cpp') diff --git a/Source/Core/Common/Config/ConfigInfo.cpp b/Source/Core/Common/Config/ConfigInfo.cpp index e0546bf8f7..22fc593e34 100644 --- a/Source/Core/Common/Config/ConfigInfo.cpp +++ b/Source/Core/Common/Config/ConfigInfo.cpp @@ -15,11 +15,6 @@ bool Location::operator==(const Location& other) const strcasecmp(key.c_str(), other.key.c_str()) == 0; } -bool Location::operator!=(const Location& other) const -{ - return !(*this == other); -} - bool Location::operator<(const Location& other) const { if (system != other.system) -- cgit v1.2.3