]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/math_atom.C
small up/down tweaking
[lyx.git] / src / mathed / math_atom.C
index 8e423064bac79325f49e4ae6008fee08cd7db078..2df8786f856550e495d1e95510ba55711162afb7 100644 (file)
@@ -1,6 +1,6 @@
 /*
  *  File:        math_atom.C
- *  Purpose:     Wrapper for MathInset * 
+ *  Purpose:     Wrapper for MathInset *
  *  Author:      André Pönitz
  *  Created:     July 2001
  *
@@ -34,16 +34,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 +52,3 @@ MathAtom::~MathAtom()
 {
        delete nucleus_;
 }
-
-
-void MathAtom::reset(MathInset * p)
-{
-       if (p == nucleus_)
-               return;
-       delete nucleus_;
-       nucleus_ = p;
-}