Skip to content

Commit 1da1620

Browse files
committed
Constify deref-state's back-pointer to goto_symex
This is only used to access its namespace in a const context.
1 parent 82c54e7 commit 1da1620

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

src/goto-symex/symex_dereference_state.h

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,9 @@ class symex_dereference_statet:
2121
{
2222
public:
2323
symex_dereference_statet(
24-
goto_symext &_goto_symex,
25-
goto_symext::statet &_state):
26-
goto_symex(_goto_symex),
27-
state(_state)
24+
const goto_symext &_goto_symex,
25+
goto_symext::statet &_state)
26+
: goto_symex(_goto_symex), state(_state)
2827
{
2928
}
3029

0 commit comments

Comments
 (0)