mirror of
https://github.com/ElementsProject/elements.git
synced 2026-08-13 12:33:42 +02:00
refactor: use C++11 default initializers
This commit is contained in:
parent
d5d40d59f8
commit
7aa40f5563
39 changed files with 57 additions and 88 deletions
|
|
@ -180,10 +180,10 @@ static int AppInitRPC(int argc, char* argv[])
|
|||
/** Reply structure for request_done to fill in */
|
||||
struct HTTPReply
|
||||
{
|
||||
HTTPReply(): status(0), error(-1) {}
|
||||
HTTPReply() = default;
|
||||
|
||||
int status;
|
||||
int error;
|
||||
int status{0};
|
||||
int error{-1};
|
||||
std::string body;
|
||||
};
|
||||
|
||||
|
|
@ -244,7 +244,7 @@ static void http_error_cb(enum evhttp_request_error err, void *ctx)
|
|||
class BaseRequestHandler
|
||||
{
|
||||
public:
|
||||
virtual ~BaseRequestHandler() {}
|
||||
virtual ~BaseRequestHandler() = default;
|
||||
virtual UniValue PrepareRequest(const std::string& method, const std::vector<std::string>& args) = 0;
|
||||
virtual UniValue ProcessReply(const UniValue &batch_in) = 0;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue