Browse Source

Added virtual destructors

develop
Robin Thoni 6 years ago
parent
commit
c7ceaef5d1

+ 1
- 1
src/modules/dns-base/CMakeLists.txt View File

@@ -23,7 +23,7 @@ add_library(${PROJECT_NAME}
23 23
         includes/dns-base/QDnsPacket.h
24 24
         includes/dns-base/QDnsBase.h
25 25
         src/RecordData/QDnsRDataDecoder.cpp
26
-        includes/dns-base/RecordData/QDnsRDataDecoder.h src/RecordData/QDnsRDataA.cpp src/RecordData/QDnsRDataA.h)
26
+        includes/dns-base/RecordData/QDnsRDataDecoder.h src/RecordData/QDnsRDataA.cpp includes/dns-base/RecordData/QDnsRDataA.h)
27 27
 
28 28
 target_link_libraries(${PROJECT_NAME} Qt5::Core)
29 29
 

+ 2
- 0
src/modules/dns-base/includes/dns-base/QDnsHeader.h View File

@@ -22,6 +22,8 @@ namespace QDns
22 22
 
23 23
             explicit QDnsHeader(QDataStream &dataStream);
24 24
 
25
+            virtual ~QDnsHeader() = default;
26
+
25 27
             QByteArray serialize() const;
26 28
 
27 29
             void serialize(QDataStream &dataStream) const;

+ 2
- 0
src/modules/dns-base/includes/dns-base/QDnsPacket.h View File

@@ -23,6 +23,8 @@ namespace QDns
23 23
 
24 24
             QDnsPacket(const QByteArray &data, QDataStream &dataStream);
25 25
 
26
+            virtual ~QDnsPacket() = default;
27
+
26 28
             QByteArray serialize() const;
27 29
 
28 30
             void serialize(QDataStream &dataStream) const;

+ 2
- 0
src/modules/dns-base/includes/dns-base/QDnsQuery.h View File

@@ -21,6 +21,8 @@ namespace QDns
21 21
 
22 22
             QDnsQuery(const QByteArray &packetData, QDataStream &dataStream);
23 23
 
24
+            virtual ~QDnsQuery() = default;
25
+
24 26
             QByteArray serialize() const;
25 27
 
26 28
             void serialize(QDataStream &dataStream) const;

+ 2
- 0
src/modules/dns-base/includes/dns-base/QDnsResourceRecord.h View File

@@ -22,6 +22,8 @@ namespace QDns
22 22
 
23 23
             QDnsResourceRecord(const QByteArray &packetData, QDataStream &dataStream);
24 24
 
25
+            virtual ~QDnsResourceRecord() = default;
26
+
25 27
             QByteArray serialize() const;
26 28
 
27 29
             void serialize(QDataStream &dataStream) const;

Loading…
Cancel
Save