mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-30 21:05:56 -05:00
build: Remove all static variables from headers to hopefully fix plugins
This commit is contained in:
@@ -3,9 +3,16 @@
|
||||
|
||||
namespace hex::dp {
|
||||
|
||||
int Link::s_idCounter = 1;
|
||||
namespace {
|
||||
|
||||
Link::Link(int from, int to) : m_id(Link::s_idCounter++), m_from(from), m_to(to) { }
|
||||
int s_idCounter = 1;
|
||||
|
||||
}
|
||||
|
||||
Link::Link(int from, int to) : m_id(s_idCounter++), m_from(from), m_to(to) { }
|
||||
|
||||
void Link::setIdCounter(int id) {
|
||||
if (id > s_idCounter)
|
||||
s_idCounter = id;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user