]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_atom.C
split inset -> inset + updatableinset
[lyx.git] / src / mathed / math_atom.C
index 76fc538851833e1c95f916cb8cad07cb1c37b77b..bbc127517920824510c783c6c9089723f7fdda4f 100644 (file)
@@ -14,9 +14,6 @@
 
 #include <config.h>
 
-#ifdef __GNUG__
-#pragma implementation
-#endif
 
 #include "math_atom.h"
 #include "math_inset.h"
@@ -34,16 +31,16 @@ MathAtom::MathAtom(MathInset * p)
 {}
 
 
-MathAtom::MathAtom(MathAtom const & p)
-       : nucleus_(p.nucleus_ ? p.nucleus_->clone() : 0)
+MathAtom::MathAtom(MathAtom const & at)
+       : nucleus_(at.nucleus_ ? at.nucleus_->clone() : 0)
 {}
 
 
-void MathAtom::operator=(MathAtom const & p)
+void MathAtom::operator=(MathAtom const & at)
 {
-       if (&p == this)
+       if (&at == this)
                return;
-       MathAtom tmp(p);
+       MathAtom tmp(at);
        std::swap(tmp.nucleus_, nucleus_);
 }
 
@@ -52,12 +49,3 @@ MathAtom::~MathAtom()
 {
        delete nucleus_;
 }
-
-
-void MathAtom::reset(MathInset * p)
-{
-       if (p == nucleus_)
-               return;
-       delete nucleus_;
-       nucleus_ = p;
-}