优化代码

空构造和析构函数替换为缺省
去除多余分号
This commit is contained in:
xiongziliang
2023-04-22 21:59:26 +08:00
parent e8a425945d
commit 7a95c87a29
21 changed files with 50 additions and 57 deletions

View File

@@ -181,13 +181,13 @@ void RtmpProtocol::sendRequest(int cmd, const string& str) {
class BufferPartial : public Buffer {
public:
BufferPartial(const Buffer::Ptr &buffer, size_t offset, size_t size){
BufferPartial(const Buffer::Ptr &buffer, size_t offset, size_t size) {
_buffer = buffer;
_data = buffer->data() + offset;
_size = size;
}
~BufferPartial() override{}
~BufferPartial() override = default;
char *data() const override {
return _data;