mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 15:31:17 +01:00
DSP/LabelMap: Make label_t's definition hidden
Given this is a private struct and it's used in a container that supports incomplete types, we can forward-declare it and move it into the cpp file. While we're at it, we can change the name to Label to follow our formatting guidelines.
This commit is contained in:
parent
a3ed4ceec5
commit
32427af79e
@ -12,6 +12,17 @@
|
|||||||
|
|
||||||
namespace DSP
|
namespace DSP
|
||||||
{
|
{
|
||||||
|
struct LabelMap::Label
|
||||||
|
{
|
||||||
|
Label(const std::string& lbl, s32 address, LabelType ltype)
|
||||||
|
: name(lbl), addr(address), type(ltype)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
std::string name;
|
||||||
|
s32 addr;
|
||||||
|
LabelType type;
|
||||||
|
};
|
||||||
|
|
||||||
LabelMap::LabelMap() = default;
|
LabelMap::LabelMap() = default;
|
||||||
|
|
||||||
LabelMap::~LabelMap() = default;
|
LabelMap::~LabelMap() = default;
|
||||||
|
@ -33,16 +33,7 @@ public:
|
|||||||
void Clear();
|
void Clear();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
struct label_t
|
struct Label;
|
||||||
{
|
std::vector<Label> labels;
|
||||||
label_t(const std::string& lbl, s32 address, LabelType ltype)
|
|
||||||
: name(lbl), addr(address), type(ltype)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
std::string name;
|
|
||||||
s32 addr;
|
|
||||||
LabelType type;
|
|
||||||
};
|
|
||||||
std::vector<label_t> labels;
|
|
||||||
};
|
};
|
||||||
} // namespace DSP
|
} // namespace DSP
|
||||||
|
Loading…
x
Reference in New Issue
Block a user