diff options
| author | HampusM <hampus@hampusmat.com> | 2022-06-14 18:34:39 +0200 | 
|---|---|---|
| committer | HampusM <hampus@hampusmat.com> | 2022-06-14 18:34:39 +0200 | 
| commit | 687d80381f3c5157ed8bb514a0e9b9df04114896 (patch) | |
| tree | 66b232371424fc536cf37d85dabe02c9d2bb60aa | |
| parent | 845ff3d141553d24d4572738101fce948bf40e67 (diff) | |
refactor: fix ObjectIdentifier == operator option namev0.2.0
| -rw-r--r-- | include/yacppdic/detail/internal/object_identifier.hpp | 2 | ||||
| -rw-r--r-- | src/object_identifier.cpp | 5 | 
2 files changed, 3 insertions, 4 deletions
diff --git a/include/yacppdic/detail/internal/object_identifier.hpp b/include/yacppdic/detail/internal/object_identifier.hpp index bf7aeaf..a97ebd2 100644 --- a/include/yacppdic/detail/internal/object_identifier.hpp +++ b/include/yacppdic/detail/internal/object_identifier.hpp @@ -18,7 +18,7 @@ public:  		std::string_view tag  	) noexcept; -	auto operator==(const ObjectIdentifier &object_type) const noexcept -> bool; +	auto operator==(const ObjectIdentifier &rhs) const noexcept -> bool;  	[[nodiscard]] auto hash() const noexcept -> std::size_t; diff --git a/src/object_identifier.cpp b/src/object_identifier.cpp index 44ca1b3..1144df7 100644 --- a/src/object_identifier.cpp +++ b/src/object_identifier.cpp @@ -20,10 +20,9 @@ ObjectIdentifier::ObjectIdentifier(  {  } -auto ObjectIdentifier::operator==(const ObjectIdentifier &object_type) const noexcept -	-> bool +auto ObjectIdentifier::operator==(const ObjectIdentifier &rhs) const noexcept -> bool  { -	return hash() == object_type.hash(); +	return hash() == rhs.hash();  }  auto ObjectIdentifier::hash() const noexcept -> std::size_t  | 
