#include "math_atom.h"
#include "math_inset.h"
+using std::swap;
MathAtom::MathAtom()
}
-void MathAtom::operator=(MathAtom const & at)
+MathAtom & MathAtom::operator=(MathAtom const & at)
{
if (&at == this)
- return;
+ return *this;
MathAtom tmp(at);
- std::swap(tmp.nucleus_, nucleus_);
+ swap(tmp.nucleus_, nucleus_);
+ return *this;
}