Browse Source

func name typo

heck-rework
heck 3 years ago
parent
commit
eed57ef631
  1. 12
      test/test_nr1.cc

12
test/test_nr1.cc

@ -14,7 +14,7 @@
namespace pEp { namespace pEp {
template<class T> template<class T>
std::string type_add_val(const T c, size_t val_len = 30) std::string type_addr_val(const T c, size_t val_len = 30)
{ {
static_assert(std::is_pointer<T>::value, "only pointer types are valid"); static_assert(std::is_pointer<T>::value, "only pointer types are valid");
std::stringstream ss_type; std::stringstream ss_type;
@ -42,28 +42,28 @@ namespace pEp {
char* alloc(const std::string& str) char* alloc(const std::string& str)
{ {
char* ret = strdup(str.c_str()); char* ret = strdup(str.c_str());
pEpLog(type_add_val(ret)); pEpLog(type_addr_val(ret));
return ret; return ret;
} }
template<class T> template<class T>
void free(T ptr_type) void free(T ptr_type)
{ {
pEpLog(type_add_val(ptr_type)); pEpLog(type_addr_val(ptr_type));
::pEp_free(ptr_type); ::pEp_free(ptr_type);
} }
template<> template<>
void free(char* ptr_type) void free(char* ptr_type)
{ {
pEpLog(type_add_val(ptr_type)); pEpLog(type_addr_val(ptr_type));
::pEp_free(ptr_type); ::pEp_free(ptr_type);
} }
template<> template<>
void free(::pEp_identity* ptr_type) void free(::pEp_identity* ptr_type)
{ {
pEpLog(type_add_val(ptr_type)); pEpLog(type_addr_val(ptr_type));
::pEp_free(ptr_type); ::pEp_free(ptr_type);
} }
@ -175,7 +175,7 @@ namespace pEp {
throw Exception{ EXSTR("invalid state") }; throw Exception{ EXSTR("invalid state") };
} }
std::string ret{ "[" + type_add_val(_c_str_pp) + " / " + type_add_val(*_c_str_pp) + "]" }; std::string ret{ "[" + type_addr_val(_c_str_pp) + " / " + type_addr_val(*_c_str_pp) + "]" };
return ret; return ret;
} }

Loading…
Cancel
Save