#include "MathAtom.h"
#include "InsetMath.h"
+using namespace std;
namespace lyx {
-using std::swap;
-
MathAtom::MathAtom()
: nucleus_(0)
{}
-MathAtom::MathAtom(InsetBase * p)
+MathAtom::MathAtom(Inset * p)
: nucleus_(static_cast<InsetMath *>(p))
{}
: nucleus_(0)
{
if (at.nucleus_)
- nucleus_ = static_cast<InsetMath*>(at.nucleus_->clone().release());
+ nucleus_ = static_cast<InsetMath*>(at.nucleus_->clone());
}