From e9c3d59aae58f8fcf77ce5cf4b985dc9e2a90de2 Mon Sep 17 00:00:00 2001 From: Andreas Sandberg Date: Tue, 7 Jul 2015 09:51:04 +0100 Subject: sim: Make the drain state a global typed enum The drain state enum is currently a part of the Drainable interface. The same state machine will be used by the DrainManager to identify the global state of the simulator. Make the drain state a global typed enum to better cater for this usage scenario. --- src/sim/sim_object.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/sim/sim_object.cc') diff --git a/src/sim/sim_object.cc b/src/sim/sim_object.cc index 2c4ba48f6..9ea51eb93 100644 --- a/src/sim/sim_object.cc +++ b/src/sim/sim_object.cc @@ -183,7 +183,7 @@ debugObjectBreak(const char *objs) unsigned int SimObject::drain(DrainManager *drain_manager) { - setDrainState(Drained); + setDrainState(DrainState::Drained); return 0; } -- cgit v1.2.3