]> git.lyx.org Git - lyx.git/blobdiff - src/mathed/MathAtom.cpp
Merge branch 'master' of git.lyx.org:lyx
[lyx.git] / src / mathed / MathAtom.cpp
index 87a569d821d50231de08c3faf685f265f2152ba0..a8483ea212cd0b07e91840dbfd05420282dc93e5 100644 (file)
@@ -3,7 +3,7 @@
  * This file is part of LyX, the document processor.
  * Licence details can be found in the file COPYING.
  *
- * \author André Pönitz
+ * \author André Pönitz
  *
  * Full author contact details are available in file CREDITS.
  */
 #include "MathAtom.h"
 #include "InsetMath.h"
 
+using namespace std;
 
 namespace lyx {
 
-using std::swap;
-
 
 MathAtom::MathAtom()
        : nucleus_(0)
 {}
 
 
-MathAtom::MathAtom(InsetBase * p)
-       : nucleus_(static_cast<InsetMath *>(p))
+MathAtom::MathAtom(InsetMath * p)
+       : nucleus_(p)
 {}
 
 
@@ -33,7 +32,7 @@ MathAtom::MathAtom(MathAtom const & at)
        : nucleus_(0)
 {
        if (at.nucleus_)
-               nucleus_ = static_cast<InsetMath*>(at.nucleus_->clone().release());
+               nucleus_ = static_cast<InsetMath*>(at.nucleus_->clone());
 }