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
e44f1b89
Commit
e44f1b89
authored
Nov 08, 2009
by
Alexandre Duret-Lutz
Browse files
Make it possible to clone const formulae.
* src/ltlast/formula.hh, src/ltlast/formula.cc (clone): Declare as const.
parent
b0888257
Changes
3
Hide whitespace changes
Inline
Side-by-side
ChangeLog
View file @
e44f1b89
2009-11-08 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Make it possible to clone const formulae.
* src/ltlast/formula.hh, src/ltlast/formula.cc (clone): Declare
as const.
2009-11-08 Alexandre Duret-Lutz <adl@lrde.epita.fr>
Rename formula::ref and formula::unref as formula::clone
...
...
src/ltlast/formula.cc
View file @
e44f1b89
...
...
@@ -27,10 +27,10 @@ namespace spot
namespace
ltl
{
formula
*
formula
::
clone
()
formula
::
clone
()
const
{
ref_
();
return
this
;
const_cast
<
formula
*>
(
this
)
->
ref_
();
return
const_cast
<
formula
*>
(
this
)
;
}
formula
::~
formula
()
...
...
src/ltlast/formula.hh
View file @
e44f1b89
...
...
@@ -80,7 +80,7 @@ namespace spot
///
/// This increments the reference counter of this node (if one is
/// used).
formula
*
clone
();
formula
*
clone
()
const
;
/// \brief release this node
///
/// This decrements the reference counter of this node (if one is
...
...
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