Refactor CompressionPiece constructor to accept string by reference and clean up unused comments

This commit is contained in:
scawful
2024-12-31 18:19:49 -05:00
parent d3eca0f950
commit fd102a5d3c
2 changed files with 14 additions and 14 deletions

View File

@@ -74,7 +74,7 @@ struct CompressionPiece {
std::string argument;
std::shared_ptr<CompressionPiece> next = nullptr;
CompressionPiece() = default;
CompressionPiece(int cmd, int len, std::string args, int arg_len)
CompressionPiece(int cmd, int len, std::string& args, int arg_len)
: command(cmd), length(len), argument_length(arg_len), argument(args) {}
};
using CompressionPiece = struct CompressionPiece;