Net: Make CNetMsgMaker more const
This commit is contained in:
2 files changed
+7
-7
No files matched your search
@@ -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)...);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user