Skip to content
Snippets Groups Projects
Commit 0aebe6b3 authored by Lioncash's avatar Lioncash
Browse files

telemetry: Make operator== and operator!= const member functions of Field

These operators don't modify internal class state, so they can be made
const member functions. While we're at it, drop the unnecessary inline
keywords. Member functions that are defined in the class declaration are
already inline by default.
parent 3575d367
No related branches found
No related tags found
No related merge requests found
......@@ -84,11 +84,11 @@ public:
return value;
}
inline bool operator==(const Field<T>& other) {
bool operator==(const Field& other) const {
return (type == other.type) && (name == other.name) && (value == other.value);
}
inline bool operator!=(const Field<T>& other) {
bool operator!=(const Field& other) const {
return !(*this == other);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment