DSP/LabelMap: Default constructor and destructor

We also move the destructor definition into the cpp file, as that will
allow us to make the entire label_t type hidden from external view in a
following change.
This commit is contained in:
Lioncash
2019-06-07 17:07:06 -04:00
parent 0a1249ea40
commit 98ec2ab2ac
2 changed files with 5 additions and 4 deletions
+3 -3
View File
@@ -11,9 +11,9 @@
namespace DSP
{
LabelMap::LabelMap()
{
}
LabelMap::LabelMap() = default;
LabelMap::~LabelMap() = default;
void LabelMap::RegisterDefaults()
{
+2 -1
View File
@@ -23,7 +23,8 @@ class LabelMap
{
public:
LabelMap();
~LabelMap() {}
~LabelMap();
void RegisterDefaults();
void RegisterLabel(const std::string& label, u16 lval, LabelType type = LABEL_VALUE);
void DeleteLabel(const std::string& label);