fix unpaired copy-ctor/op= reported by PVS-Stydio
For #192. * bin/common_trans.cc, bin/common_trans.hh, spot/twa/acc.hh: Add an operator= in addition to the copy constructor. * spot/twaalgos/ltl2tgba_fm.cc: Use the default constructor. * spot/ta/taproduct.cc, spot/ta/taproduct.hh: Delete an unused copy constructor.
This commit is contained in:
parent
63818a3e69
commit
d0112a7b8a
6 changed files with 27 additions and 17 deletions
|
|
@ -28,12 +28,6 @@ namespace spot
|
|||
////////////////////////////////////////////////////////////
|
||||
// state_ta_product
|
||||
|
||||
state_ta_product::state_ta_product(const state_ta_product& o) :
|
||||
state(), ta_state_(o.get_ta_state()), kripke_state_(
|
||||
o.get_kripke_state()->clone())
|
||||
{
|
||||
}
|
||||
|
||||
state_ta_product::~state_ta_product()
|
||||
{
|
||||
//see ta_product::free_state() method
|
||||
|
|
@ -61,7 +55,7 @@ namespace spot
|
|||
state_ta_product*
|
||||
state_ta_product::clone() const
|
||||
{
|
||||
return new state_ta_product(*this);
|
||||
return new state_ta_product(ta_state_, kripke_state_);
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////
|
||||
|
|
|
|||
|
|
@ -41,8 +41,7 @@ namespace spot
|
|||
{
|
||||
}
|
||||
|
||||
/// Copy constructor
|
||||
state_ta_product(const state_ta_product& o);
|
||||
state_ta_product(const state_ta_product& o) = delete;
|
||||
|
||||
virtual
|
||||
~state_ta_product();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue