From 8dd301c251c331e6019885f787cf8cfaea36d961 Mon Sep 17 00:00:00 2001 From: roker Date: Mon, 21 Jun 2021 14:48:10 +0200 Subject: [PATCH] fix cut & paste errors, so the compiler is happy again. :) --- src/identity.cc | 13 +++++++------ src/types.hh | 2 +- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/src/identity.cc b/src/identity.cc index b9b6637..3b1b5b1 100644 --- a/src/identity.cc +++ b/src/identity.cc @@ -13,30 +13,31 @@ namespace pEp } template<> - pEp_identity* identity_list::* const ListWrapper::Value = &identity_list::ident; + ::pEp_identity* identity_list::* const ListWrapper<::identity_list*, ::pEp_identity*>::Value + = &identity_list::ident; template<> - int identity_list::size() const + int IdentityList::size() const { return identity_list_length(value); } // faster than .size()==0 because it's not necessary to iterate throgh the whole list template<> - bool identity_list::empty() const + bool IdentityList::empty() const { return !(value && value->ident); } template<> - void identity_list::clear() + void IdentityList::clear() { free_identity_list(value); value = nullptr; } template<> - void identity_list::push_back(pEp_identity*&& id) + void IdentityList::push_back(pEp_identity*&& id) { auto last = identity_list_add(value, id); if(value==nullptr) @@ -46,7 +47,7 @@ namespace pEp template<> ListWrapper<::identity_list*, pEp_identity*>::ListWrapper(const std::initializer_list>& il) - : identity_list{} + : Base{} { ::identity_list* last = nullptr; for(const Wrapper& id : il) diff --git a/src/types.hh b/src/types.hh index 181064c..fca55e8 100644 --- a/src/types.hh +++ b/src/types.hh @@ -21,7 +21,7 @@ namespace pEp }; using Identity = Wrapper<::pEp_identity*>; - using IdentityList = ListWrapper<::pEp_identity_list*, ::pEp_identity*>; + using IdentityList = ListWrapper<::identity_list*, ::pEp_identity*>; using StringPair = Wrapper<::stringpair_t*>; using StringPairList = ListWrapper<::stringpair_list_t*, ::stringpair_t*>;