Skip to content
Snippets Groups Projects
Commit d88766ef authored by an7s's avatar an7s
Browse files

use initializers for 2 constant

parent cdca08f0
No related branches found
No related tags found
No related merge requests found
......@@ -74,7 +74,7 @@ class ColoredInstructionNonces_t
{
public:
ColoredInstructionNonces_t(libIRDB::FileIR_t *the_firp)
: firp(the_firp) { }
: firp(the_firp), slot_size(1), slot_values(255) { }
ColoredSlotValues_t GetColorsOfIBT (libIRDB::Instruction_t* i)
{ return color_assignments[i]; }
......@@ -95,8 +95,8 @@ class ColoredInstructionNonces_t
libIRDB::FileIR_t* firp;
// used to describe how big a nonce slot is. for now, 1 byte.
const int slot_size=1;
const int slot_values=255;
const int slot_size;
const int slot_values;
// information for each slot we've used.
std::vector<ColoredSlotAllocator_t> slots_used;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment