mirror of
https://github.com/bitcoin/bitcoin.git
synced 2025-12-09 04:02:25 +01:00
Net: Make CNetMsgMaker more const
This commit is contained in:
@@ -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