refactor: use std::string in tr_variantToStr() (#2351)

* refactor: use std::string in tr_variantToStr()
This commit is contained in:
Charles Kerr
2021-12-27 16:47:25 -06:00
committed by GitHub
parent 0b095dc258
commit fa35b8ad39
20 changed files with 114 additions and 173 deletions

View File

@@ -228,7 +228,7 @@ constexpr bool tr_str_is_empty(char const* value)
return value == nullptr || *value == '\0';
}
char* evbuffer_free_to_str(struct evbuffer* buf, size_t* result_len);
std::string evbuffer_free_to_str(evbuffer* buf);
/**
* @brief sprintf() a string into a newly-allocated buffer large enough to hold it