File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -266,7 +266,7 @@ class DepthFirstSearch {
266
266
267
267
virtual void onSimpleCycle (DfsStack &stack){};
268
268
269
- explicit DepthFirstSearch (FiniteStateMachine &targetFsm) : fsm(targetFsm){};
269
+ explicit DepthFirstSearch (const FiniteStateMachine &targetFsm) : fsm(targetFsm){};
270
270
271
271
// Execute the depth first search
272
272
void DoDepthFirstSearch (const StateRef &startingState, bool fullDFS = false ) {
@@ -319,15 +319,15 @@ class DepthFirstSearch {
319
319
}
320
320
321
321
protected:
322
- FiniteStateMachine &fsm;
322
+ const FiniteStateMachine &fsm;
323
323
};
324
324
325
325
// Check for cycles
326
326
class DetectCycle : public DepthFirstSearch {
327
327
public:
328
328
bool hasCycle = false ;
329
329
330
- explicit DetectCycle (FiniteStateMachine &targetFsm) : DepthFirstSearch(targetFsm){};
330
+ explicit DetectCycle (const FiniteStateMachine &targetFsm) : DepthFirstSearch(targetFsm){};
331
331
332
332
~DetectCycle () override = default ;
333
333
You can’t perform that action at this time.
0 commit comments