changed b arg to reference

This commit is contained in:
EntireTwix 2021-06-23 10:07:05 -07:00
parent 00b6c92a38
commit 29f9905b53
2 changed files with 3 additions and 3 deletions

View file

@ -11,7 +11,7 @@ class api : public HttpController<api, false>
Bank &bank;
public:
api(Bank *b);
api(Bank &b);
void Help(req_args) const;
void Ping(req_args) const;
void Close(req_args) const;
@ -27,7 +27,7 @@ public:
void SetBal(req_args, const std::string &name, uint32_t amount) const;
void AdminVerifyPass(req_args);
void GetLog(req_args, const std::string &name);
METHOD_LIST_BEGIN
//Usage

View file

@ -24,7 +24,7 @@ constexpr Json::Value JsonCast(T &&val)
}
}
api::api(Bank *b) : bank(*b) {}
api::api(Bank &b) : bank(b) {}
void api::Help(req_args) const
{