Browse Source

fix member functions

master
roker 12 months ago
parent
commit
555c3acd88
1 changed files with 8 additions and 3 deletions
  1. +8
    -3
      src/types.cc

+ 8
- 3
src/types.cc View File

@ -96,7 +96,7 @@ namespace pEp
template<>
bool StringPairList::empty() const
{
return value && value->value;
return !(value && value->value);
}
template<>
@ -118,14 +118,19 @@ namespace pEp
template<>
void StringPairList::push_back(::stringpair_t*&& sp)
{
stringpair_list_add(value, sp);
auto last = stringpair_list_add(value, sp);
if(value==nullptr)
value = last;
sp = nullptr;
}
template<>
void StringPairList::push_back(StringPair&& sp)
{
stringpair_list_add(value, sp.move_out());
auto last = stringpair_list_add(value, sp.move_out());
if(value==nullptr)
value = last;
}
template<>


Loading…
Cancel
Save