#12 add destructor

pull/32/head
Geoffrey Merck 4 years ago
parent c512e2894a
commit 11b9469f45

@ -38,6 +38,11 @@ m_type(type)
m_path.assign(path.begin(), path.end());
}
CAPRSFrame::~CAPRSFrame()
{
m_path.clear();
}
void CAPRSFrame::clear()
{
m_source.clear();

@ -36,6 +36,7 @@ class CAPRSFrame {
public:
CAPRSFrame();
CAPRSFrame(const std::string& source, const std::string& destination, const std::vector<std::string>& path, const std::string& body, APRS_FRAME_TYPE type);
~CAPRSFrame();
void clear();
std::string& getSource() { return m_source; }

Loading…
Cancel
Save

Powered by TurnKey Linux.