From 1c45bc6697a7624d3ca3589e295b79268af38673 Mon Sep 17 00:00:00 2001 From: "anchi.liu" Date: Wed, 25 Sep 2024 18:50:12 +0900 Subject: [PATCH] simplify the code --- Packet++/src/GvcpLayer.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Packet++/src/GvcpLayer.cpp b/Packet++/src/GvcpLayer.cpp index ad376436a4..429fa37d27 100644 --- a/Packet++/src/GvcpLayer.cpp +++ b/Packet++/src/GvcpLayer.cpp @@ -27,10 +27,8 @@ namespace pcpp /*---------------------- Class GvcpLayer ----------------------------*/ GvcpLayer::GvcpLayer(uint8_t* data, size_t dataSize, Layer* prevLayer, Packet* packet) - : Layer(data, dataSize, prevLayer, packet) - { - m_Protocol = Gvcp; - } + : Layer(data, dataSize, prevLayer, packet, Gvcp) + {} GvcpLayer* GvcpLayer::parseGvcpLayer(uint8_t* data, size_t dataLen, Layer* prevLayer, Packet* packet) {