diff options
author | LaG1924 <12997935+LaG1924@users.noreply.github.com> | 2023-07-08 21:41:27 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-07-08 21:41:27 +0200 |
commit | a68f48ad526d0843eb451af0be7f119db5ff794e (patch) | |
tree | 3c539c9e7de841c6616f532dadb7c8c1ef552d95 /src/Packet.hpp | |
parent | Merge pull request #80 from LaG1924/ftr/better-water (diff) | |
parent | Fixed some errors detected by static analysis (diff) | |
download | AltCraft-master.tar AltCraft-master.tar.gz AltCraft-master.tar.bz2 AltCraft-master.tar.lz AltCraft-master.tar.xz AltCraft-master.tar.zst AltCraft-master.zip |
Diffstat (limited to '')
-rw-r--r-- | src/Packet.hpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Packet.hpp b/src/Packet.hpp index 56a2e5e..00e151a 100644 --- a/src/Packet.hpp +++ b/src/Packet.hpp @@ -1091,7 +1091,7 @@ struct PacketChatMessageSB : Packet { std::string Message; - PacketChatMessageSB(const std::string msg) : Message(msg) {}; + PacketChatMessageSB(const std::string& msg) : Message(msg) {}; }; struct PacketPlayerDigging : Packet { @@ -1184,7 +1184,7 @@ struct PacketPluginMessageSB : Packet { return PacketNamePlaySB::PluginMessageSB; } - PacketPluginMessageSB(const std::string& channel, const std::vector<unsigned char> data) : Channel(channel), Data(data) {} + PacketPluginMessageSB(const std::string& channel, const std::vector<unsigned char>& data) : Channel(channel), Data(data) {} std::string Channel; std::vector<unsigned char> Data; @@ -1209,7 +1209,7 @@ struct PacketClientSettings : Packet { } PacketClientSettings( - const std::string locale, + const std::string& locale, unsigned char viewDistance, int chatMode, bool chatColors, |