mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 08:32:13 +11:00
changed b arg to reference
This commit is contained in:
parent
00b6c92a38
commit
29f9905b53
2 changed files with 3 additions and 3 deletions
|
|
@ -11,7 +11,7 @@ class api : public HttpController<api, false>
|
||||||
Bank &bank;
|
Bank &bank;
|
||||||
|
|
||||||
public:
|
public:
|
||||||
api(Bank *b);
|
api(Bank &b);
|
||||||
void Help(req_args) const;
|
void Help(req_args) const;
|
||||||
void Ping(req_args) const;
|
void Ping(req_args) const;
|
||||||
void Close(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 SetBal(req_args, const std::string &name, uint32_t amount) const;
|
||||||
void AdminVerifyPass(req_args);
|
void AdminVerifyPass(req_args);
|
||||||
void GetLog(req_args, const std::string &name);
|
void GetLog(req_args, const std::string &name);
|
||||||
|
|
||||||
METHOD_LIST_BEGIN
|
METHOD_LIST_BEGIN
|
||||||
|
|
||||||
//Usage
|
//Usage
|
||||||
|
|
|
||||||
|
|
@ -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
|
void api::Help(req_args) const
|
||||||
{
|
{
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue