mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-17 13:07:54 +02:00
refactor: Replace const char* to std::string
Some functions should be returning std::string instead of const char*. This commit changes that.
This commit is contained in:
parent
dc5333d31f
commit
c57f03ce17
9 changed files with 24 additions and 13 deletions
|
|
@ -20,6 +20,7 @@
|
|||
#include <functional>
|
||||
#include <memory>
|
||||
#include <stdio.h>
|
||||
#include <string>
|
||||
#include <tuple>
|
||||
|
||||
#include <event2/buffer.h>
|
||||
|
|
@ -157,7 +158,7 @@ struct HTTPReply
|
|||
std::string body;
|
||||
};
|
||||
|
||||
static const char *http_errorstring(int code)
|
||||
static std::string http_errorstring(int code)
|
||||
{
|
||||
switch(code) {
|
||||
#if LIBEVENT_VERSION_NUMBER >= 0x02010300
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue