File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ class RpcFunctionDispatcher {
3737 return true ;
3838 }
3939
40- bool isBound (MsgPack::str_t & name) const {
40+ bool isBound (const MsgPack::str_t & name) const {
4141 for (size_t i = 0 ; i < _count; ++i) {
4242 if (_entries[i].name == name) {
4343 return true ;
@@ -46,7 +46,7 @@ class RpcFunctionDispatcher {
4646 return false ;
4747 }
4848
49- bool hasTag (MsgPack::str_t & name, MsgPack::str_t & tag) const {
49+ bool hasTag (const MsgPack::str_t & name, MsgPack::str_t & tag) const {
5050 for (size_t i = 0 ; i < _count; ++i) {
5151 if (_entries[i].name == name && _entries[i].tag == tag) {
5252 return true ;
@@ -55,7 +55,7 @@ class RpcFunctionDispatcher {
5555 return false ;
5656 }
5757
58- bool call (MsgPack::str_t & name, MsgPack::Unpacker& unpacker, MsgPack::Packer& packer) {
58+ bool call (const MsgPack::str_t & name, MsgPack::Unpacker& unpacker, MsgPack::Packer& packer) {
5959 for (size_t i = 0 ; i < _count; ++i) {
6060 if (_entries[i].name == name) {
6161 return (*_entries[i].fn )(unpacker, packer);
Original file line number Diff line number Diff line change @@ -85,4 +85,4 @@ class RPCRequest {
8585
8686};
8787
88- #endif RPCLITE_REQUEST_H
88+ #endif // RPCLITE_REQUEST_H
You can’t perform that action at this time.
0 commit comments