Skip to content

Commit

Permalink
Another destructor cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
cziter15 committed Feb 15, 2025
1 parent c191ebb commit eb71566
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 14 deletions.
2 changes: 0 additions & 2 deletions src/ksf/comp/ksMqttConnector.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -32,8 +32,6 @@ using namespace std::placeholders;

namespace ksf::comps
{
ksMqttConnector::~ksMqttConnector() = default;

ksMqttConnector::ksMqttConnector(bool sendConnectionStatus, bool usePersistentSession)
: reconnectTimer(KSF_MQTT_RECONNECT_DELAY_MS)
{
Expand Down
5 changes: 0 additions & 5 deletions src/ksf/comp/ksMqttConnector.h
Original file line number Diff line number Diff line change
Expand Up @@ -195,10 +195,5 @@ namespace ksf::comps
@param fingerprint MQTT broker certificate fingerprint - if empty, secure connection won't be used
*/
void setupConnection(const std::string broker, const std::string& port, std::string login, std::string password, std::string prefix, const std::string& fingerprint);

/*!
@brief Destructor (for uniqueptr purposes).
*/
virtual ~ksMqttConnector();
};
}
3 changes: 3 additions & 0 deletions src/ksf/evt/ksEventInterface.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,8 @@ namespace ksf::evt
@param callbackUID Unique callback ID
*/
virtual void unbind(std::size_t callbackUID) = 0;

public:
virtual ~ksEventInterface() = default;
};
}
2 changes: 0 additions & 2 deletions src/ksf/ksComponent.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@

namespace ksf
{
ksComponent::~ksComponent() = default;

bool ksComponent::init(ksApplication* app)
{
return true;
Expand Down
5 changes: 0 additions & 5 deletions src/ksf/ksComponent.h
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,6 @@ namespace ksf
ksComponentState::TYPE componentState { ksComponentState::NotInitialized };

public:
/*!
@brief Destructor.
*/
virtual ~ksComponent();

/*!
@brief Initializes component.
@param app Pointer to the parent ksApplication.
Expand Down
2 changes: 2 additions & 0 deletions src/ksf/misc/ksSimpleTimer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ namespace ksf::misc
setInterval(intervalMs);
}

ksSimpleTimer::~ksSimpleTimer() = default;

void ksSimpleTimer::setInterval(uint32_t intervalMs)
{
this->intervalMs = intervalMs;
Expand Down
5 changes: 5 additions & 0 deletions src/ksf/misc/ksSimpleTimer.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,11 @@ namespace ksf::misc
*/
ksSimpleTimer(uint32_t intervalMs);

/*!
@brief Destructs timer.
*/
virtual ~ksSimpleTimer();

/*!
@brief Sets timer interval (milliseconds) and restarts the timer.
@param intervalMs Timer interval in milliseconds. If 0 then timer is disabled.
Expand Down

0 comments on commit eb71566

Please sign in to comment.