From 59d8202868364b6efeb92dbd694d961723b74cc0 Mon Sep 17 00:00:00 2001 From: HampusM Date: Thu, 9 Jun 2022 17:46:24 +0200 Subject: refactor: replace BaseObjectType with static ObjectType method --- src/container.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/container.cpp') diff --git a/src/container.cpp b/src/container.cpp index 00efc27..044d487 100644 --- a/src/container.cpp +++ b/src/container.cpp @@ -7,20 +7,20 @@ namespace yacppdic { void Container::add( - const BaseObjectType &type, + const ObjectType &type, const WrapperPtr &wrapper ) noexcept { _bindings.insert({ type, wrapper }); } -void Container::remove(const BaseObjectType &type) noexcept +void Container::remove(const ObjectType &type) noexcept { _bindings.erase(type); } -Container::WrapperPtr Container::at(const BaseObjectType &type -) const noexcept +auto Container::at(const ObjectType &type) const noexcept + -> Container::WrapperPtr { return _bindings.at(type); } -- cgit v1.2.3-18-g5258