}
-void MathAtom::operator=(MathInset * p)
-{
- reset(p);
-}
-
-
MathAtom::~MathAtom()
{
delete nucleus_;
}
-
-
-void MathAtom::reset(MathInset * p)
-{
- if (p == nucleus_)
- return;
- delete nucleus_;
- nucleus_ = p;
-}
~MathAtom();
/// assignment invokes nucleus_->clone()
void operator=(MathAtom const &);
- /// change inset under the hood
- void operator=(MathInset * p);
- /// change inset under the hood
- void reset(MathInset * p);
/// access to the inset (checked with gprof)
MathInset const * nucleus() const { return nucleus_; }
MathInset * nucleus() { return nucleus_; }
parse(ar, false, MathInset::UNDECIDED_MODE);
if (ar.size() != 1 || ar.front()->getType() == "none") {
lyxerr << "unusual contents found: " << ar << endl;
- at.reset(new MathParInset);
+ at = MathAtom(new MathParInset);
if (at->nargs() > 0)
at->cell(0) = ar;
else