1
0
mirror of synced 2024-12-21 03:55:56 +01:00
ImHex/lib/libimhex/source/data_processor/link.cpp
2023-11-30 10:22:15 +01:00

14 lines
283 B
C++

#include <hex/data_processor/link.hpp>
namespace hex::dp {
int Link::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;
}
}