From 203db8ffe8d4ee82ca126926232f4d4de21b7aec Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 9 Jun 2022 18:46:00 +0200 Subject: refactor: rename ObjectType to ObjectIdentifier --- src/container.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/container.cpp') diff --git a/src/container.cpp b/src/container.cpp index 044d487..f8c4931 100644 --- a/src/container.cpp +++ b/src/container.cpp @@ -7,19 +7,19 @@ namespace yacppdic { void Container::add( - const ObjectType &type, + const ObjectIdentifier &type, const WrapperPtr &wrapper ) noexcept { _bindings.insert({ type, wrapper }); } -void Container::remove(const ObjectType &type) noexcept +void Container::remove(const ObjectIdentifier &type) noexcept { _bindings.erase(type); } -auto Container::at(const ObjectType &type) const noexcept +auto Container::at(const ObjectIdentifier &type) const noexcept -> Container::WrapperPtr { return _bindings.at(type); -- cgit v1.2.3-18-g5258