summaryrefslogtreecommitdiff
path: root/Source/Core/Common/Config
diff options
context:
space:
mode:
authormitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-10-08 17:16:57 -0700
committermitaclaw <140017135+mitaclaw@users.noreply.github.com>2024-10-10 20:23:55 -0700
commite8d5fb89e4465e8ef64920f12e7cb60e82057658 (patch)
treeeda79c38cbe3b018b91038d642ccc48bcc9f93b8 /Source/Core/Common/Config
parentb5f7a508742671410c44fc6f0e66d0ce789c3b57 (diff)
C++20: Synthesize `operator!=` From `operator==`
The inequality operator is automatically generated by the compiler if `operator==` is defined.
Diffstat (limited to 'Source/Core/Common/Config')
-rw-r--r--Source/Core/Common/Config/Config.h1
-rw-r--r--Source/Core/Common/Config/ConfigInfo.cpp5
-rw-r--r--Source/Core/Common/Config/ConfigInfo.h1
3 files changed, 0 insertions, 7 deletions
diff --git a/Source/Core/Common/Config/Config.h b/Source/Core/Common/Config/Config.h
index 1303388566..1c91bc65af 100644
--- a/Source/Core/Common/Config/Config.h
+++ b/Source/Core/Common/Config/Config.h
@@ -20,7 +20,6 @@ struct ConfigChangedCallbackID
size_t id = -1;
bool operator==(const ConfigChangedCallbackID&) const = default;
- bool operator!=(const ConfigChangedCallbackID&) const = default;
};
using ConfigChangedCallback = std::function<void()>;
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)
diff --git a/Source/Core/Common/Config/ConfigInfo.h b/Source/Core/Common/Config/ConfigInfo.h
index e59239b881..be3d00108b 100644
--- a/Source/Core/Common/Config/ConfigInfo.h
+++ b/Source/Core/Common/Config/ConfigInfo.h
@@ -28,7 +28,6 @@ struct Location
std::string key;
bool operator==(const Location& other) const;
- bool operator!=(const Location& other) const;
bool operator<(const Location& other) const;
};