aboutsummaryrefslogtreecommitdiff
path: root/src/container.cpp
diff options
context:
space:
mode:
authorHampusM <hampus@hampusmat.com>2022-06-09 18:46:00 +0200
committerHampusM <hampus@hampusmat.com>2022-06-09 18:46:00 +0200
commit203db8ffe8d4ee82ca126926232f4d4de21b7aec (patch)
tree5ff26298a748f3ddfb9a86c2fcf5c1bd6873e452 /src/container.cpp
parent59d8202868364b6efeb92dbd694d961723b74cc0 (diff)
refactor: rename ObjectType to ObjectIdentifier
Diffstat (limited to 'src/container.cpp')
-rw-r--r--src/container.cpp6
1 files changed, 3 insertions, 3 deletions
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<IGenericWrapper> &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<IGenericWrapper>
{
return _bindings.at(type);