fix some g++-snapshot warnings
* spot/twaalgos/couvreurnew.cc: explicit operator bool is not used by return.
This commit is contained in:
parent
230801c420
commit
43b580ccee
1 changed files with 2 additions and 2 deletions
|
|
@ -613,14 +613,14 @@ namespace spot
|
||||||
}
|
}
|
||||||
|
|
||||||
// Handy cast operators.
|
// Handy cast operators.
|
||||||
// Note that a pointer can be cast to a Boolean as usual.
|
|
||||||
operator bool() const
|
operator bool() const
|
||||||
{
|
{
|
||||||
if (tag == BOOL)
|
if (tag == BOOL)
|
||||||
return res;
|
return res;
|
||||||
else
|
else
|
||||||
return ecr;
|
return !!ecr;
|
||||||
}
|
}
|
||||||
|
|
||||||
operator emptiness_check_result_ptr() const
|
operator emptiness_check_result_ptr() const
|
||||||
{
|
{
|
||||||
if (tag == PTR)
|
if (tag == PTR)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue