mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-28 07:47:03 -05:00
build: Add support for unity builds
This commit is contained in:
@@ -3,11 +3,7 @@
|
||||
|
||||
namespace hex::dp {
|
||||
|
||||
namespace {
|
||||
|
||||
int s_idCounter = 1;
|
||||
|
||||
}
|
||||
int Attribute::s_idCounter = 1;
|
||||
|
||||
|
||||
Attribute::Attribute(IOType ioType, Type type, std::string unlocalizedName) : m_id(s_idCounter++), m_ioType(ioType), m_type(type), m_unlocalizedName(std::move(unlocalizedName)) {
|
||||
|
||||
@@ -3,11 +3,7 @@
|
||||
|
||||
namespace hex::dp {
|
||||
|
||||
namespace {
|
||||
|
||||
int s_idCounter = 1;
|
||||
|
||||
}
|
||||
int Link::s_idCounter = 1;
|
||||
|
||||
Link::Link(int from, int to) : m_id(s_idCounter++), m_from(from), m_to(to) { }
|
||||
|
||||
|
||||
@@ -7,11 +7,7 @@
|
||||
|
||||
namespace hex::dp {
|
||||
|
||||
namespace {
|
||||
|
||||
int s_idCounter = 1;
|
||||
|
||||
}
|
||||
int Node::s_idCounter = 1;
|
||||
|
||||
Node::Node(std::string unlocalizedTitle, std::vector<Attribute> attributes) : m_id(s_idCounter++), m_unlocalizedTitle(std::move(unlocalizedTitle)), m_attributes(std::move(attributes)) {
|
||||
for (auto &attr : this->m_attributes)
|
||||
|
||||
Reference in New Issue
Block a user