You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@inlong.apache.org by do...@apache.org on 2022/08/31 06:23:03 UTC

[inlong] branch master updated: [INLONG-5748][TubeMQ] Remove the virtual keyword of the destructor of the TubeMQTDMsg and DataItem classes (#5750)

This is an automated email from the ASF dual-hosted git repository.

dockerzhang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/inlong.git


The following commit(s) were added to refs/heads/master by this push:
     new 5b4959096 [INLONG-5748][TubeMQ] Remove the virtual keyword of the destructor of the TubeMQTDMsg and DataItem classes (#5750)
5b4959096 is described below

commit 5b495909655c4261d531c3c2fb5408e530a22df2
Author: Goson Zhang <46...@qq.com>
AuthorDate: Wed Aug 31 14:22:58 2022 +0800

    [INLONG-5748][TubeMQ] Remove the virtual keyword of the destructor of the TubeMQTDMsg and DataItem classes (#5750)
---
 .../tubemq-client-cpp/include/tubemq/tubemq_tdmsg.h                   | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/inlong-tubemq/tubemq-client-twins/tubemq-client-cpp/include/tubemq/tubemq_tdmsg.h b/inlong-tubemq/tubemq-client-twins/tubemq-client-cpp/include/tubemq/tubemq_tdmsg.h
index 395175b47..ec053b613 100644
--- a/inlong-tubemq/tubemq-client-twins/tubemq-client-cpp/include/tubemq/tubemq_tdmsg.h
+++ b/inlong-tubemq/tubemq-client-twins/tubemq-client-cpp/include/tubemq/tubemq_tdmsg.h
@@ -41,7 +41,7 @@ class DataItem {
   DataItem();
   DataItem(const DataItem& target);
   DataItem(const uint32_t length, const char* data);
-  virtual ~DataItem();
+  ~DataItem();
   DataItem& operator=(const DataItem& target);
   const uint32_t GetLength() const { return length_; }
   const char* GetData() const { return data_; }
@@ -58,7 +58,7 @@ class DataItem {
 class TubeMQTDMsg {
  public:
   TubeMQTDMsg();
-  virtual ~TubeMQTDMsg();
+  ~TubeMQTDMsg();
   bool ParseTDMsg(const char* data,
     uint32_t data_length, string& err_info);
   bool ParseTDMsg(const vector<char>& data_vec, string& err_info);