diff options
author | Jorge Timón <jtimon@jtimon.cc> | 2017-01-31 22:57:40 +0100 |
---|---|---|
committer | Jorge Timón <jtimon@jtimon.cc> | 2017-01-31 23:29:28 +0100 |
commit | fc7f2ffad481870e62ab2f798f941577983c5a39 (patch) | |
tree | e259ea9e8005549726a713339046281f35086bb4 /src/netmessagemaker.h | |
parent | d45955fa0992639d6c9856a73c5f7599cc14f811 (diff) |
Net: Make CNetMsgMaker more const
Diffstat (limited to 'src/netmessagemaker.h')
-rw-r--r-- | src/netmessagemaker.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/netmessagemaker.h b/src/netmessagemaker.h index 7167434a19..8e8a6e4a02 100644 --- a/src/netmessagemaker.h +++ b/src/netmessagemaker.h @@ -15,7 +15,7 @@ public: CNetMsgMaker(int nVersionIn) : nVersion(nVersionIn){} template <typename... Args> - CSerializedNetMsg Make(int nFlags, std::string sCommand, Args&&... args) + CSerializedNetMsg Make(int nFlags, std::string sCommand, Args&&... args) const { CSerializedNetMsg msg; msg.command = std::move(sCommand); @@ -24,7 +24,7 @@ public: } template <typename... Args> - CSerializedNetMsg Make(std::string sCommand, Args&&... args) + CSerializedNetMsg Make(std::string sCommand, Args&&... args) const { return Make(0, std::move(sCommand), std::forward<Args>(args)...); } |