src/typesystemtransaction.cpp
/*!
 * \fn void commit()
 * \brief Reverse all changes made since the beginning of the transaction.
 */
\fn void commit()
\brief Reverse all changes made since the beginning of the transaction.
\ fn void commit () \ brief Reverse all changes made since the beginning of the transaction .
void TypeSystemTransaction::rollback()
{
  TypeSystemImpl* ts = TypeSystemListener::typeSystem()->impl();
  auto types = std::move(m_types);
  for (Type t : types)
  {
    ts->destroy(t);
  }
  TypeSystemListener::typeSystem()->removeListener(this);
  m_types.clear();
  if (m_target->impl()->active_transaction == this)
  {
    m_target->impl()->active_transaction = nullptr;
  }
}
void TypeSystemTransaction :: rollback ( ) { TypeSystemImpl * ts = TypeSystemListener :: typeSystem ( ) -> impl ( ) ; auto types = std :: move ( m_types ) ; for ( Type t : types ) { ts -> destroy ( t ) ; } TypeSystemListener :: typeSystem ( ) -> removeListener ( this ) ; m_types . clear ( ) ; if ( m_target -> impl ( ) -> active_transaction == this ) { m_target -> impl ( ) -> active_transaction = nullptr ; } }
\fn void commit()
 \brief Reverse all changes made since the beginning of the transaction.
\ fn void commit () \ brief Reverse all changes made since the beginning of the transaction .