Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Spot
Spot
Commits
d618dc95
Commit
d618dc95
authored
Apr 18, 2020
by
Antoine Martin
Committed by
Etienne Renault
May 18, 2020
Browse files
twacube: mark get_initial method as const
* spot/twacube/twacube.hh,spot/twacube/twacube.cc: Here.
parent
5f7daeef
Changes
2
Hide whitespace changes
Inline
Side-by-side
spot/twacube/twacube.cc
View file @
d618dc95
...
...
@@ -81,10 +81,10 @@ namespace spot
init_
=
init
;
}
unsigned
twacube
::
get_initial
()
unsigned
twacube
::
get_initial
()
const
{
if
(
theg_
.
num_states
()
==
0
)
new_state
(
);
throw
std
::
runtime_error
(
"automaton has no state at all"
);
return
init_
;
}
...
...
spot/twacube/twacube.hh
View file @
d618dc95
...
...
@@ -148,7 +148,7 @@ namespace spot
void
set_initial
(
unsigned
init
);
/// \brief Returns the id of the initial state in the automaton.
unsigned
get_initial
();
unsigned
get_initial
()
const
;
/// \brief Accessor for a state from its id.
cstate
*
state_from_int
(
unsigned
i
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment