Protect the state destructor.

Client code should always call the destroy() method instead.  (It
was introduced in Spot 0.7.)

* src/tgba/state.hh (state::~state): Make it protected.
This commit is contained in:
Alexandre Duret-Lutz 2011-03-30 15:59:58 +02:00
parent 94ac863cfb
commit 29a908cc8f
2 changed files with 10 additions and 3 deletions

View file

@ -88,9 +88,7 @@ namespace spot
delete this;
}
// FIXME: Make the destructor protected after Spot 0.7.
//protected:
protected:
/// \brief Destructor.
///
/// \deprecated Client code should now call