From eed57ef631d3f4df01b47f878a285a507413c34c Mon Sep 17 00:00:00 2001 From: heck Date: Tue, 22 Feb 2022 22:45:55 +0100 Subject: [PATCH] func name typo --- test/test_nr1.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/test/test_nr1.cc b/test/test_nr1.cc index 301d63c..564b1a1 100644 --- a/test/test_nr1.cc +++ b/test/test_nr1.cc @@ -14,7 +14,7 @@ namespace pEp { template - 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::value, "only pointer types are valid"); std::stringstream ss_type; @@ -42,28 +42,28 @@ namespace pEp { char* alloc(const std::string& str) { char* ret = strdup(str.c_str()); - pEpLog(type_add_val(ret)); + pEpLog(type_addr_val(ret)); return ret; } template void free(T ptr_type) { - pEpLog(type_add_val(ptr_type)); + pEpLog(type_addr_val(ptr_type)); ::pEp_free(ptr_type); } template<> void free(char* ptr_type) { - pEpLog(type_add_val(ptr_type)); + pEpLog(type_addr_val(ptr_type)); ::pEp_free(ptr_type); } template<> void free(::pEp_identity* ptr_type) { - pEpLog(type_add_val(ptr_type)); + pEpLog(type_addr_val(ptr_type)); ::pEp_free(ptr_type); } @@ -175,7 +175,7 @@ namespace pEp { 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; }