X-Git-Url: https://git.netwichtig.de/gitweb/?a=blobdiff_plain;f=src%2Fmodules%2Frpc.h;h=75a7efd62077a0a3bf92dc5d3f9eb04922a07b78;hb=697098bb47651b40ed9c768361d1a3b1ca452856;hp=c9acc3b7dde955bd2b47a617500a909355520c20;hpb=5a3a7c969cf6253eb1dcc82e95ad8516cc6acff8;p=user%2Fhenk%2Fcode%2Finspircd.git diff --git a/src/modules/rpc.h b/src/modules/rpc.h index c9acc3b7d..75a7efd62 100644 --- a/src/modules/rpc.h +++ b/src/modules/rpc.h @@ -106,11 +106,11 @@ class RPCValue : public classbase public: RPCValue *parent; - RPCValue(RPCValue *parent = NULL) : type(RPCNull), value(NULL), parent(parent) { } - RPCValue(RPCValueType type, RPCValue *parent = NULL) : type(type), value(NULL), parent(parent) { InitValue(); } - RPCValue(bool nvalue, RPCValue *parent = NULL) : type(RPCBoolean), value((void*)nvalue), parent(parent) { } - RPCValue(double nvalue, RPCValue *parent = NULL) : type(RPCInteger), parent(parent) { value = new double(nvalue); } - RPCValue(const std::string &nvalue, RPCValue *parent = NULL) : type(RPCString), parent(parent) { value = new std::string(nvalue); } + RPCValue(RPCValue *rparent = NULL) : type(RPCNull), value(NULL), parent(rparent) { } + RPCValue(RPCValueType ttype, RPCValue *rparent = NULL) : type(ttype), value(NULL), parent(rparent) { InitValue(); } + RPCValue(bool nvalue, RPCValue *rparent = NULL) : type(RPCBoolean), value((void*)nvalue), parent(rparent) { } + RPCValue(double nvalue, RPCValue *rparent = NULL) : type(RPCInteger), parent(rparent) { value = new double(nvalue); } + RPCValue(const std::string &nvalue, RPCValue *rparent = NULL) : type(RPCString), parent(rparent) { value = new std::string(nvalue); } virtual ~RPCValue() { @@ -280,8 +280,8 @@ class RPCRequest : public classbase bool claimed; std::string error; - RPCRequest(const std::string &provider, const std::string &method, RPCValue *parameters) - : method(method), parameters(parameters), provider(provider), claimed(false) + RPCRequest(const std::string &sprovider, const std::string &smethod, RPCValue *rparameters) + : method(smethod), parameters(rparameters), provider(sprovider), claimed(false) { result = new RPCValue(); }