Skip to content

Commit

Permalink
Fixed client destructors
Browse files Browse the repository at this point in the history
  • Loading branch information
grodansparadis committed Jun 3, 2024
1 parent ac3e5c2 commit 617276a
Show file tree
Hide file tree
Showing 13 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion src/vscp/common/canal-xmlconfig.h
Original file line number Diff line number Diff line change
Expand Up @@ -1062,7 +1062,7 @@ class canalXmlConfig
std::string getDescription(void) { return m_description; }

// Setters for level
void setLevel(uint8_t level) { m_level = m_level; };
void setLevel(uint8_t level) { m_level = level; };
uint8_t getLevel(void) { return m_level; }

// Setters for bBlocking
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-bootdevice-pic1.h
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ class CBootDevice_PIC1 : public CBootDevice {
uint32_t timeout = REGISTER_DEFAULT_TIMEOUT);

// Dtor
~CBootDevice_PIC1(void);
virtual ~CBootDevice_PIC1(void);

// Used VSCP commands
static const uint8_t VSCP_PIC1_READ_REGISTER = 0x09;
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-bootdevice-vscp.h
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class CBootDevice_VSCP : public CBootDevice {
uint32_t timeout = REGISTER_DEFAULT_TIMEOUT);

/// Dtor
~CBootDevice_VSCP(void);
virtual ~CBootDevice_VSCP(void);

// Memory Types
enum mem_type {
Expand Down
5 changes: 1 addition & 4 deletions src/vscp/common/vscp-client-base.h
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ class CVscpClient {

public:
CVscpClient();
~CVscpClient();
virtual ~CVscpClient();

/*!
vscp-client class types
Expand All @@ -78,15 +78,12 @@ class CVscpClient {
NONE = 0,
TCPIP,
CANAL,
LEVEL2,
SOCKETCAN,
WS1,
WS2,
MQTT,
UDP,
MULTICAST,
RAWCAN,
RAWMQTT
} connType;

/*!
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-canal.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class vscpClientCanal : public CVscpClient {

public:
vscpClientCanal();
~vscpClientCanal();
virtual ~vscpClientCanal();

/*!
Initialize the CANAL client
Expand Down
4 changes: 2 additions & 2 deletions src/vscp/common/vscp-client-level2.h
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
class vscpClientLevel2 : public CVscpClient {

public:
vscpClientLevel2();
~vscpClientLevel2();
virtual vscpClientLevel2();
virtual ~vscpClientLevel2();

static const uint32_t FLAG_ENABLE_DEBUG = 0x80000000; // Debug mode

Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-mqtt.h
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,7 @@ class publishTopic {
#else
publishTopic(const std::string &topic, enumMqttMsgFormat format = jsonfmt, int qos = 0, bool bretain = false);
#endif
~publishTopic();
virtual ~publishTopic();

/// Getters/Setters for topic
std::string getTopic(void) { return m_topic; };
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-multicast.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class vscpClientMulticast : public CVscpClient {

public:
vscpClientMulticast();
~vscpClientMulticast();
virtual ~vscpClientMulticast();

/*!
Connect to remote host
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-socketcan.h
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ class vscpClientSocketCan : public CVscpClient {

public:
vscpClientSocketCan();
~vscpClientSocketCan();
virtual ~vscpClientSocketCan();

// Socketcan flags
const u_int32_t sockletcan_flag_fd_enable = 0x00008000; // FD frames will be handled
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-tcp.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ class vscpClientTcp : public CVscpClient {

public:
vscpClientTcp();
~vscpClientTcp();
virtual ~vscpClientTcp();

/*!
Initialize the tcp client
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-udp.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class vscpClientUdp : public CVscpClient {

public:
vscpClientUdp();
~vscpClientUdp();
virtual ~vscpClientUdp();

/*!
Connect to remote host
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-ws1.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class vscpClientWs1 : public CVscpClient {

public:
vscpClientWs1();
~vscpClientWs1();
virtual ~vscpClientWs1();

/*!
Init client
Expand Down
2 changes: 1 addition & 1 deletion src/vscp/common/vscp-client-ws2.h
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ class vscpClientWs2 : public CVscpClient {

public:
vscpClientWs2();
~vscpClientWs2();
virtual ~vscpClientWs2();

/*!
Init client
Expand Down

0 comments on commit 617276a

Please sign in to comment.